Merge "Add auto restriction preference" into pi-dev
am: f178692bc5
Change-Id: I097a604222b45e5048e0f5e9c831766b2bf0b5e5
This commit is contained in:
@@ -4914,6 +4914,11 @@
|
||||
<item quantity="other">%1$d apps</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Title for auto restriction toggle -->
|
||||
<string name="battery_auto_restriction_title">Restrict apps automatically</string>
|
||||
<!-- Summary for auto restriction toggle -->
|
||||
<string name="battery_auto_restriction_summary">Prevent apps from using extra battery in the background</string>
|
||||
|
||||
<!-- Title for force stop dialog [CHAR LIMIT=30] -->
|
||||
<string name="dialog_stop_title">Stop app?</string>
|
||||
<!-- Message body for force stop dialog [CHAR LIMIT=NONE] -->
|
||||
|
||||
@@ -15,7 +15,9 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:key="smart_battery_detail"
|
||||
android:title="@string/smart_battery_manager_title">
|
||||
|
||||
@@ -32,6 +34,12 @@
|
||||
android:title="@string/smart_battery_title"
|
||||
android:summary="@string/smart_battery_summary"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="auto_restriction"
|
||||
android:title="@string/battery_auto_restriction_title"
|
||||
android:summary="@string/battery_auto_restriction_summary"
|
||||
settings:controller="com.android.settings.fuelgauge.AutoRestrictionPreferenceController"/>
|
||||
|
||||
<Preference
|
||||
android:key="restricted_app"
|
||||
android:title="@string/restricted_app_title"/>
|
||||
|
||||
Reference in New Issue
Block a user