samsung: doze: Apply a major refactor
authorBruno Martins <bgcngm@gmail.com>
Sat, 26 Dec 2020 14:55:22 +0000 (14:55 +0000)
committerBruno Martins <bgcngm@gmail.com>
Wed, 13 Jan 2021 14:23:47 +0000 (15:23 +0100)
commit4a3c87d08887276a12c5e1e5732ed017d2225435
treecad93c4b23c42c0e2572d8d3aeebc9a7497f630e
parent8449b50d2233148dda7672870b7c54ba5b1e824b
samsung: doze: Apply a major refactor

 * Introduce a main switch to actually enable/disable doze globally
 * Move preferences handling out of SamsungDozeService class and
   create Utils class to hold all helper methods.

Change-Id: Idb40650296d50352b4a985d2068f14cda6cb4aaf
15 files changed:
doze/Android.mk
doze/res/color/switch_bar_bg.xml [new file with mode: 0644]
doze/res/drawable/switchbar_background.xml [new file with mode: 0644]
doze/res/layout/doze.xml [new file with mode: 0644]
doze/res/layout/switch_bar.xml [new file with mode: 0644]
doze/res/values-night/colors.xml [new file with mode: 0644]
doze/res/values/colors.xml [new file with mode: 0644]
doze/res/values/styles.xml
doze/res/xml/gesture_panel.xml
doze/src/org/lineageos/settings/doze/BootCompletedReceiver.java
doze/src/org/lineageos/settings/doze/SamsungDozeActivity.java
doze/src/org/lineageos/settings/doze/SamsungDozeService.java
doze/src/org/lineageos/settings/doze/SamsungDozeSettings.java [new file with mode: 0644]
doze/src/org/lineageos/settings/doze/TouchscreenGestureSettings.java [deleted file]
doze/src/org/lineageos/settings/doze/Utils.java [new file with mode: 0644]