GamingMode: Add our HW keys support [3/3]

SDB: Also remove the switch from now-hw-key devices
     and remove gesture hide toggle from HW Key Devices
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
SuperDroidBond
2021-08-18 21:53:51 +05:30
committed by Hưng Phan
parent 8921ede1d6
commit b8f6aff761
3 changed files with 36 additions and 10 deletions

View File

@@ -112,16 +112,20 @@
android:dependency="gaming_mode_enabled" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/gaming_mode_prevent_accidental_touch">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="gaming_mode_disable_gesture"
android:title="@string/gaming_mode_disable_gesture_title"
android:defaultValue="false"
android:dependency="gaming_mode_enabled" />
</PreferenceCategory>
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="gaming_mode_disable_hw_keys"
android:title="@string/gaming_mode_hardware_keys_title"
android:summary="@string/gaming_mode_hardware_keys_summary"
android:defaultValue="false"
android:dependency="gaming_mode_enabled" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="gaming_mode_disable_gesture"
android:title="@string/gaming_mode_disable_gesture_title"
android:summary="@string/gaming_mode_disable_gesture_summary"
android:defaultValue="false"
android:dependency="gaming_mode_enabled" />
<com.cherish.settings.preferences.PackageListPreference
android:key="gaming_mode_app_list"