aboutsummaryrefslogtreecommitdiff
path: root/doze/AndroidManifest.xml
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-10-14 21:18:03 -0700
committerdavidevinavil <davidevinavil@gmail.com>2017-01-21 18:32:37 +0100
commit8e48c247cff44d96ad69b7f7602adf75f44a1716 (patch)
tree4fa60f5a59edc11a4c15a7a031ea897f1bbd8b15 /doze/AndroidManifest.xml
parent1559ebce0ec7064839149a850f488036f9b46e9d (diff)
z2_plus: Bring DozeSettings up to date
* Rework the UI with a SwitchBar * Change to the preferences support library and use fragments * Use all the new fancy RemotePreference stuff * Slot into display settings instead of the dashboard Change-Id: I0850f7d9558a14f739f752f76002db993381a0e5
Diffstat (limited to 'doze/AndroidManifest.xml')
-rw-r--r--doze/AndroidManifest.xml21
1 files changed, 12 insertions, 9 deletions
diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml
index 97aacea..6c8d23f 100644
--- a/doze/AndroidManifest.xml
+++ b/doze/AndroidManifest.xml
@@ -7,18 +7,20 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
+ <uses-permission android:name="cyanogenmod.permission.MANAGE_REMOTE_PREFERENCES" />
<uses-sdk
- android:minSdkVersion="21"
- android:targetSdkVersion="21"/>
+ android:minSdkVersion="24"
+ android:targetSdkVersion="24"/>
<application
android:label="XiaomiDoze"
android:persistent="true">
- <receiver android:name="com.cyanogenmod.settings.doze.BootCompletedReceiver">
+ <receiver android:name="com.cyanogenmod.settings.doze.DozeReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
+ <action android:name="cyanogenmod.intent.action.UPDATE_PREFERENCE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
@@ -30,16 +32,17 @@
<activity
android:name=".DozeSettings"
android:label="@string/ambient_display_title"
- android:theme="@android:style/Theme.Material.Settings">
+ android:theme="@style/DozeSettings">
<intent-filter>
- <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
+ <action android:name="org.cyanogenmod.settings.device.DOZE_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.device" />
+ android:name="org.cyanogenmod.settings.summary.receiver"
+ android:value="com.cyanogenmod.settings.doze.DozeReceiver" />
<meta-data
- android:name="com.android.settings.icon"
- android:resource="@drawable/ic_settings_doze" />
+ android:name="org.cyanogenmod.settings.summary.key"
+ android:value="doze_device_settings" />
</activity>
</application>