This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
android_packages_apps_Cherish/res/xml/screen_state_toggles.xml
maxwen 06ab541376 Cherish: Suspend Actions [3/3]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>

Cherish: Extended suspend actions (3/3)

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
2021-07-04 21:24:51 +07:00

69 lines
2.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/screen_state_toggles_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<SwitchPreference
android:key="screen_state_toggles_enable_key"
android:title="@string/screen_state_toggles_enable_title"
android:summary="@string/screen_state_toggles_enable_summary"
android:defaultValue="false"/>
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="screen_state_off_delay"
android:title="@string/screen_state_off_delay_title"
android:max="180"
settings:min="0"
settings:interval="5"
android:defaultValue="0"
settings:units="sec"
android:persistent="false"
android:dependency="screen_state_toggles_enable_key" />
<com.cherish.settings.preferences.CustomSeekBarPreference
android:key="screen_state_on_delay"
android:title="@string/screen_state_on_delay_title"
android:max="180"
settings:min="0"
settings:interval="5"
android:defaultValue="0"
settings:units="sec"
android:persistent="false"
android:dependency="screen_state_toggles_enable_key" />
<PreferenceCategory
android:key="screen_state_toggles_mobile_key"
android:title="@string/screen_state_toggles_mobile_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="screen_state_toggles_twog"
android:title="@string/screen_state_toggles_twog"
android:summary="@string/screen_state_toggles_twog_summary"
android:defaultValue="false"/>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="screen_state_toggles_threeg"
android:title="@string/screen_state_toggles_threeg"
android:summary="@string/screen_state_toggles_threeg_summary"
android:defaultValue="false"/>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="screen_state_toggles_mobile_data"
android:title="@string/screen_state_toggles_mobile_data"
android:summary="@string/screen_state_toggles_mobile_data_summary"
android:defaultValue="false"/>
</PreferenceCategory>
<PreferenceCategory
android:key="screen_state_toggles_location_key"
android:title="@string/screen_state_toggles_location_title">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="screen_state_toggles_gps"
android:title="@string/screen_state_toggles_gps"
android:summary="@string/screen_state_toggles_gps_summary"
android:defaultValue="false"/>
</PreferenceCategory>
</PreferenceScreen>