summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorRahul Chaturvedi <rkc@google.com>2015-06-01 21:26:41 -0400
committerRahul Chaturvedi <rkc@google.com>2015-06-04 19:17:23 -0400
commit799aa04f2f961742a2f99bc0dc5a19f6bbbe2f56 (patch)
tree5e78c957b9071a53a70e4a4a3f7dd02da8287674 /AndroidManifest.xml
parent091f0ffd929f7a0a9a6af7d202eae13c48c07daa (diff)
downloadandroid_packages_apps_Trebuchet-799aa04f2f961742a2f99bc0dc5a19f6bbbe2f56.zip
android_packages_apps_Trebuchet-799aa04f2f961742a2f99bc0dc5a19f6bbbe2f56.tar.gz
android_packages_apps_Trebuchet-799aa04f2f961742a2f99bc0dc5a19f6bbbe2f56.tar.bz2
Use a broadcast receiver instead of a settings observer.
Settings observer doesn't work if a setting is modified in another process, hence we instead register a receiver which listens for a signal from the settings process that the rotation preference has changed. Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index fce4691..f9f5fc2 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -45,6 +45,10 @@
android:protectionLevel="signature"
/>
<permission
+ android:name="com.android.launcher3.permission.RECEIVE_UPDATE_ORIENTATION_BROADCASTS"
+ android:protectionLevel="signature"
+ />
+ <permission
android:name="com.android.launcher3.permission.RECEIVE_FIRST_LOAD_BROADCAST"
android:protectionLevel="signatureOrSystem" />
@@ -62,6 +66,7 @@
<uses-permission android:name="com.android.launcher3.permission.READ_SETTINGS" />
<uses-permission android:name="com.android.launcher3.permission.WRITE_SETTINGS" />
<uses-permission android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS" />
+ <uses-permission android:name="com.android.launcher3.permission.RECEIVE_UPDATE_ORIENTATION_BROADCASTS" />
<uses-permission android:name="com.android.launcher3.permission.RECEIVE_FIRST_LOAD_BROADCAST" />
<application
@@ -152,7 +157,8 @@
<activity
android:name="com.android.launcher3.SettingsActivity"
android:label="@string/settings_button_text"
- android:autoRemoveFromRecents="true">
+ android:autoRemoveFromRecents="true"
+ android:process=":settings_process">
</activity>
<!-- Debugging tools -->