Move old battery settings page to dev options

Also remove the click action and ripple in new battery settings page.

Bug: 72728884
Test: Screenshot
Change-Id: I3b6b4978a407f8d1bf799b6a880cd396c861456b
This commit is contained in:
jackqdyulei
2018-02-05 15:24:55 -08:00
parent b1c7b88f10
commit 6cbe94c1c5
2 changed files with 7 additions and 1 deletions

View File

@@ -9372,4 +9372,6 @@
<!-- Settings item summary for automatic Bluetooth on while driving preference [CHAR LIMIT=100] -->
<string name="bluetooth_on_while_driving_summary">Turn on Bluetooth automatically when driving</string>
<!-- Title for item to go to old battery settings page when clicking [CHAR LIMIT=100] -->
<string name="dev_android_o_battery_settings_title">See Android 8.0 battery settings</string>
</resources>

View File

@@ -76,6 +76,11 @@
android:summary="@string/runningservices_settings_summary"
android:fragment="com.android.settings.applications.RunningServices" />
<Preference
android:key="android_o_battery_settings"
android:fragment="com.android.settings.fuelgauge.PowerUsageSummaryLegacy"
android:title="@string/dev_android_o_battery_settings_title" />
<Preference
android:key="convert_to_file_encryption"
android:title="@string/convert_to_file_encryption"
@@ -471,7 +476,6 @@
android:entries="@array/app_process_limit_entries"
android:entryValues="@array/app_process_limit_values" />
<Preference
android:key="background_check"
android:fragment="com.android.settings.applications.appops.BackgroundCheckSummary"