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

@@ -1352,7 +1352,7 @@
<string name="gaming_mode_auto_answer_call_title">Answering calls automatically</string>
<string name="gaming_mode_auto_answer_call_summary">Answer calls automatically in the game and hands free when no headphones connected</string>
<string name="gaming_mode_prevent_accidental_touch">prevent accidental touch</string>
<string name="gaming_mode_disable_gesture_summary">Disables navigation gestures when GamingMode is active</string>
<string name="gaming_mode_disable_hw_keys_title">Disable hardware keys</string>
<string name="gaming_mode_disable_gesture_title">Disable gestures</string>
@@ -1369,6 +1369,8 @@
<string name="gaming_mode_danmaku_speed_vertical_title">Danmaku speed (vertical)</string>
<string name="gaming_mode_danmaku_blacklist">Blacklist</string>
<string name="gaming_mode_menu_opacity_title">Menu opacity level</string>
<string name="gaming_mode_hardware_keys_title">Disable Hw buttons</string>
<string name="gaming_mode_hardware_keys_summary">Disables Hw buttons when GamingMode is active</string>
<!-- Custom carrier label and position -->
<string name="carrier_label_category_title">CarrierLabel Settings</string>

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"