Cherish:Battery Saver Profiles [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Maitreya29
2021-08-01 17:11:55 +05:30
committed by Hưng Phan
parent 28d592a2a1
commit 12d27fdc9d
6 changed files with 146 additions and 0 deletions

View File

@@ -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

View 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>