MotoActions: General cleanup
authorMichael W <baddaemon87@gmail.com>
Fri, 11 Feb 2022 14:38:28 +0000 (15:38 +0100)
committerNolen Johnson <johnsonnolen@gmail.com>
Sun, 13 Feb 2022 04:30:46 +0000 (23:30 -0500)
commita95471f8705b3885a9dabde85b537a4917b0e986
tree3a733ef7e3846d2281b5c8c558a813c84d3f129b
parent63d883171d0b157a64e6c252911a265ff55c6dae
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