Cherish:Battery Saver Profiles [2/2]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -129,6 +129,13 @@
|
||||
<intent android:action="android.intent.action.MAIN"
|
||||
android:targetPackage="com.android.settings"
|
||||
android:targetClass="com.cherish.settings.fragments.HAFRAppListActivity" />
|
||||
|
||||
<Preference
|
||||
android:key="ps_cat"
|
||||
android:title="@string/powersave_title"
|
||||
android:summary="@string/powersave_summary"
|
||||
android:fragment="com.cherish.settings.fragments.PowerSaving"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceCategory
|
||||
|
||||
28
res/xml/cherish_settings_powersave.xml
Normal file
28
res/xml/cherish_settings_powersave.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 NezukoOS
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title=" "
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="power_profile_type"
|
||||
android:title="@string/power_profile"
|
||||
android:dialogTitle="@string/power_profile"
|
||||
android:entries="@array/power_profile_type_entries"
|
||||
android:defaultValue="1"
|
||||
android:entryValues="@array/power_profile_type_values"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user