Cherish: Bring back Gaming mode [3/3]
Signed-off-by: DennySPB <dennyspb@gmail.com> Change-Id: I4ffb0bdf8453068eb049da4823fea6da33346446
This commit is contained in:
73
res/xml/cherish_settings_gaming_mode.xml
Normal file
73
res/xml/cherish_settings_gaming_mode.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016-2019 crDroid Android 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.
|
||||
-->
|
||||
<preferencesScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/gaming_mode_title">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchpreferences
|
||||
android:key="gaming_mode_headsup_toggle"
|
||||
android:title="@string/gaming_mode_headsup_title"
|
||||
android:summary="@string/gaming_mode_headsup_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchpreferences
|
||||
android:key="gaming_mode_hw_keys_toggle"
|
||||
android:title="@string/gaming_mode_hardware_keys_title"
|
||||
android:summary="@string/gaming_mode_hardware_keys_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchpreferences
|
||||
android:key="gaming_mode_manual_brightness_toggle"
|
||||
android:title="@string/gaming_mode_brightness_title"
|
||||
android:summary="@string/gaming_mode_brightness_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListpreferences
|
||||
android:key="gaming_mode_ringer_mode"
|
||||
android:title="@string/gaming_mode_ringer_title"
|
||||
android:entries="@array/gaming_mode_ringer_entries"
|
||||
android:entryValues="@array/gaming_mode_ringer_values"
|
||||
android:defaultValue="0"
|
||||
android:summary="%s" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListpreferences
|
||||
android:key="gaming_mode_notifications"
|
||||
android:title="@string/gaming_mode_notifications_title"
|
||||
android:entries="@array/gaming_mode_notifications_entries"
|
||||
android:entryValues="@array/gaming_mode_notifications_values"
|
||||
android:defaultValue="3"
|
||||
android:summary="%s" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchpreferences
|
||||
android:key="gaming_mode_dynamic_state"
|
||||
android:title="@string/gaming_mode_dynamic_title"
|
||||
android:summary="@string/gaming_mode_dynamic_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<preferencesCategory
|
||||
android:title="@string/gaming_mode_app_picker_title"
|
||||
android:key="gamingmode_applications">
|
||||
|
||||
<preferences
|
||||
android:key="add_gamingmode_packages"
|
||||
android:icon="@drawable/ic_menu_add_white"
|
||||
android:title="@string/add_gaming_mode_package_title" />
|
||||
|
||||
</preferencesCategory>
|
||||
|
||||
</preferencesScreen>
|
||||
@@ -18,6 +18,14 @@
|
||||
android:title="@string/misc_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
|
||||
android:key="gaming_mode_enabled"
|
||||
android:icon="@drawable/ic_gaming_mode"
|
||||
android:fragment="com.cherish.settings.fragments.GamingMode"
|
||||
android:title="@string/gaming_mode_title"
|
||||
android:summary="@string/gaming_mode_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="wake_when_plugged_or_unplugged"
|
||||
android:icon="@drawable/ic_plug"
|
||||
|
||||
Reference in New Issue
Block a user