Cherish:[QUASH]Revert Gaming Mode

Revert "Cherish: Option to disable all headsup notifications for Gaming mode [2/2]"

This reverts commit bda00a0719.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>

Revert "Prevent NPE in gaming mode settings"

This reverts commit 568bd02088.

Revert "Gaming mode: stop using masterswitch preference"

This reverts commit f58718e4ae.

Revert "GameMode: remove hwkeys toggle on non-hwkeys devices"

This reverts commit 7a5e86f2e5.

Revert "Cherish:Bring back Gaming mode [3/3]"

This reverts commit c1e9a0df45.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Hưng Phan
2021-08-17 11:30:12 +07:00
parent 8532503387
commit f47e3db4c0
7 changed files with 0 additions and 592 deletions

View File

@@ -17,14 +17,6 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/misc_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<Preference
android:key="gaming_mode"
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" />
<PreferenceCategory
android:title="@string/doze_brightness_category">

View File

@@ -1,85 +0,0 @@
<?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.
-->
<PreferenceScreen
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.SystemSettingSwitchPreference
android:key="gaming_mode_enabled"
android:title="@string/gaming_mode_enable_title"
android:summary="@string/gaming_mode_enable_summary"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="gaming_mode_headsup_toggle"
android:title="@string/gaming_mode_headsup_title"
android:entries="@array/gaming_mode_headsup_toggle_entries"
android:entryValues="@array/gaming_mode_headsup_toggle_values"
android:summary="%s"
android:dependency="gaming_mode_enabled"
android:defaultValue="1" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="gaming_mode_hw_keys_toggle"
android:title="@string/gaming_mode_hardware_keys_title"
android:summary="@string/gaming_mode_hardware_keys_summary"
android:dependency="gaming_mode_enabled"
android:defaultValue="false" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="gaming_mode_manual_brightness_toggle"
android:title="@string/gaming_mode_brightness_title"
android:summary="@string/gaming_mode_brightness_summary"
android:dependency="gaming_mode_enabled"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingListPreference
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:dependency="gaming_mode_enabled"
android:summary="%s" />
<com.cherish.settings.preferences.SystemSettingListPreference
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:dependency="gaming_mode_enabled"
android:summary="%s" />
<!-- <com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="gaming_mode_dynamic_state"
android:title="@string/gaming_mode_dynamic_title"
android:summary="@string/gaming_mode_dynamic_summary"
android:dependency="gaming_mode_enabled"
android:defaultValue="false" />
-->
<PreferenceCategory
android:dependency="gaming_mode_enabled"
android:title="@string/gaming_mode_app_picker_title"
android:key="gamingmode_applications">
<Preference
android:key="add_gamingmode_packages"
android:icon="@drawable/ic_menu_add_white"
android:title="@string/add_gaming_mode_package_title" />
</PreferenceCategory>
</PreferenceScreen>

View File

@@ -79,14 +79,6 @@
android:title="@string/sleep_mode_aggressive_toggle_title"
android:summary="@string/sleep_mode_aggressive_toggle_summary"
android:defaultValue="true" />
<com.cherish.settings.preferences.SecureSettingListPreference
android:key="sleep_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" />
</PreferenceCategory>
<com.android.settingslib.widget.LayoutPreference