Fix long press auto rotate implementation bug
Test: locally with flame
Bug: 181741815
Change-Id: I8090471f8c6dbd8e6e4edb4f838779c901c4791b
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 86d7992..6ac1ac9 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -954,12 +954,29 @@
<category android:name="com.android.settings.SHORTCUT" />
</intent-filter>
<meta-data android:name="com.android.settings.FRAGMENT_CLASS"
- android:value="com.android.settings.display.SmartAutoRotatePreferenceFragment" />
+ android:value="com.android.settings.DisplaySettings" />
<meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
android:value="true" />
</activity>
<activity
+ android:name="Settings$SmartAutoRotateSettingsActivity"
+ android:label="@string/accelerometer_title"
+ android:icon="@drawable/ic_homepage_notification"
+ android:exported="true">
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.AUTO_ROTATE_SETTINGS" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <intent-filter android:priority="32">
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="com.android.settings.SHORTCUT" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.display.SmartAutoRotatePreferenceFragment" />
+ </activity>
+
+ <activity
android:name="Settings$NightDisplaySettingsActivity"
android:label="@string/night_display_title"
android:enabled="@*android:bool/config_nightDisplayAvailable"