MotoActions: General cleanup
authorMichael W <baddaemon87@gmail.com>
Fri, 11 Feb 2022 14:38:28 +0000 (15:38 +0100)
committerdianlujitao <dianlujitao@lineageos.org>
Sun, 13 Feb 2022 03:36:30 +0000 (11:36 +0800)
commitd3980d320b9f24c02bc9dc71d568b87b4c62790e
tree440bb9717fed1bfb73878264820500608a78dc14
parent2f73399f6eb12982ea96aa235927b1e1d9226aec
MotoActions: General cleanup

* Remove unused classes, methods, interfaces, imports
* Reorder imports
* Add final where applicable
* Fix line lengths
* Use local variables where possible
* Replace deprecated Vibrator.vibrate(long) with the successor
* Simplify conditions where they are always met
* Rearrange tags and remove unused schemas in resources
* Merge ScreenReceiver into the service
  -> a separate, instantiated but never called-into class makes
     one think it's unused

Change-Id: I05cff7ecaf424c166fedceb1f4f8963164c6085a
35 files changed:
MotoActions/AndroidManifest.xml
MotoActions/res/color/chop.xml
MotoActions/res/color/flip.xml
MotoActions/res/color/pick.xml
MotoActions/res/color/pick2.xml
MotoActions/res/color/pick3.xml
MotoActions/res/color/quick.xml
MotoActions/res/drawable/ic_hand.xml
MotoActions/res/drawable/ic_pickup.xml
MotoActions/res/drawable/ic_pocket.xml
MotoActions/res/drawable/ic_settings_chop.xml
MotoActions/res/drawable/ic_settings_flip.xml
MotoActions/res/drawable/ic_settings_pick.xml
MotoActions/res/drawable/ic_settings_twist.xml
MotoActions/res/drawable/ic_settings_wave.xml
MotoActions/src/org/lineageos/settings/device/ActionsPreferenceActivity.java
MotoActions/src/org/lineageos/settings/device/ActionsPreferenceFragment.java
MotoActions/src/org/lineageos/settings/device/BootCompletedReceiver.java
MotoActions/src/org/lineageos/settings/device/MotoActionsService.java
MotoActions/src/org/lineageos/settings/device/MotoActionsSettings.java
MotoActions/src/org/lineageos/settings/device/SensorAction.java
MotoActions/src/org/lineageos/settings/device/SensorHelper.java
MotoActions/src/org/lineageos/settings/device/ServiceWrapper.java [deleted file]
MotoActions/src/org/lineageos/settings/device/actions/CameraActivationAction.java
MotoActions/src/org/lineageos/settings/device/actions/CameraActivationSensor.java
MotoActions/src/org/lineageos/settings/device/actions/ChopChopSensor.java
MotoActions/src/org/lineageos/settings/device/actions/FlipToMute.java
MotoActions/src/org/lineageos/settings/device/actions/LiftToSilence.java
MotoActions/src/org/lineageos/settings/device/actions/ProximitySilencer.java
MotoActions/src/org/lineageos/settings/device/actions/TorchAction.java
MotoActions/src/org/lineageos/settings/device/actions/UpdatedStateNotifier.java
MotoActions/src/org/lineageos/settings/device/doze/DozePulseAction.java
MotoActions/src/org/lineageos/settings/device/doze/FlatUpSensor.java
MotoActions/src/org/lineageos/settings/device/doze/ScreenReceiver.java [deleted file]
MotoActions/src/org/lineageos/settings/device/doze/ScreenStateNotifier.java