Cherish:Add pref for qs brightness slider position [2/2]
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
25
res/xml/brightness_slider.xml
Normal file
25
res/xml/brightness_slider.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2020 CherishOS
|
||||
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/qs_show_brightness_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="qs_brightness_position_bottom"
|
||||
android:icon="@drawable/ic_brightness"
|
||||
android:title="@string/qs_brightness_position_bottom_title"
|
||||
android:summary="@string/qs_brightness_position_bottom_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -17,6 +17,15 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/quicksettings_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<!-- QS brightness slider -->
|
||||
<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
|
||||
android:key="qs_show_brightness"
|
||||
android:icon="@drawable/ic_brightness"
|
||||
android:title="@string/qs_show_brightness_title"
|
||||
android:summary="@string/qs_show_brightness_summary"
|
||||
android:fragment="com.cherish.settings.fragments.BrightnessSliderSettings"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SecureSettingSwitchPreference
|
||||
android:key="quick_settings_vibrate"
|
||||
|
||||
Reference in New Issue
Block a user