Cherish: Allow scheduling always on display [2/2]
From sunset to sunrise or at a custom time Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
34
res/xml/always_on_display_schedule.xml
Normal file
34
res/xml/always_on_display_schedule.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2021 Yet Another AOSP Project
|
||||
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="@string/always_on_display_schedule_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<com.cherish.settings.preferences.SecureSettingListPreference
|
||||
android:key="doze_always_on_auto_mode"
|
||||
android:title="@string/night_display_auto_mode_title"
|
||||
android:dialogTitle="@string/night_display_auto_mode_title"
|
||||
android:entries="@array/doze_always_on_auto_mode_entries"
|
||||
android:entryValues="@array/doze_always_on_auto_mode_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<Preference
|
||||
android:key="doze_always_on_auto_since"
|
||||
android:title="@string/night_display_start_time_title" />
|
||||
|
||||
<Preference
|
||||
android:key="doze_always_on_auto_till"
|
||||
android:title="@string/night_display_end_time_title" />
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -41,6 +41,10 @@
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<Preference
|
||||
android:key="always_on_display_schedule"
|
||||
android:title="@string/always_on_display_schedule_title"
|
||||
android:fragment="com.cherish.settings.fragments.AODSchedule" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="lockscreen_battery_info"
|
||||
|
||||
Reference in New Issue
Block a user