mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
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
This commit is contained in:
@@ -44,6 +44,10 @@
|
||||
android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS"
|
||||
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 -->
|
||||
|
||||
Reference in New Issue
Block a user