Changes

Summary

  1. module-notificationpolicyaccess: Fix IllegalStateException (details)
Commit 32d334c9561b8c1f7621aa6cc010a2cfc21bed28 by Florian Schmaus
module-notificationpolicyaccess: Fix IllegalStateException
The new commands from the volume-set command group all attempted to
register as "default command with arguments", this caused the following
ISE:
Uncaught exception in Thread[main,5,main]
java.lang.ExceptionInInitializerError
at
org.projectmaxs.module.notificationpolicyaccess.ModuleReceiver.<init>(ModuleReceiver.java:30)
at java.lang.Class.newInstance(Native Method)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3071)
at android.app.ActivityThread.-wrap18(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1592)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:241)
at android.app.ActivityThread.main(ActivityThread.java:6274)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused
by: java.lang.IllegalStateException: SubCommand default with arguments
already registered.
at
org.projectmaxs.shared.module.SupraCommand.register(SupraCommand.java:113)
at
org.projectmaxs.module.notificationpolicyaccess.ModuleService.<clinit>(ModuleService.java:79)
11 more
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetAlarm.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetMusic.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/AbstractVolumeSetCommand.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetVoiceCall.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetRing.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetNotification.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetDtmf.java (diff)
The file was modifiedmodule-notificationpolicyaccess/src/org/projectmaxs/module/notificationpolicyaccess/commands/VolumeSetSystem.java (diff)