Volume key cursor control (2/2)

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Change-Id: I06cda48c030174ad16ff5427cdb6e16327fe7bb9
Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
KonstaT
2021-12-24 20:04:55 +07:00
committed by Hưng Phan
parent db80cf7f2f
commit 8cc09b522f
3 changed files with 29 additions and 0 deletions

View File

@@ -190,4 +190,17 @@
<item>@string/action_value_select_app</item>
</string-array>
<!--- Volume key cursor control -->
<string-array name="volume_key_cursor_control_entries">
<item>@string/volume_key_cursor_control_off</item>
<item>@string/volume_key_cursor_control_on</item>
<item>@string/volume_key_cursor_control_on_reverse</item>
</string-array>
<string-array name="volume_key_cursor_control_values">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
</resources>

View File

@@ -316,4 +316,11 @@
<string name="show_network_traffic_down">Download</string>
<string name="show_network_traffic_all">Both</string>
<string name="nettraf_font_size">Single net font size</string>
<!-- Volume rocker cursor control -->
<string name="cursor_section_header">Cursor</string>
<string name="volume_key_cursor_control_title">Keyboard cursor control</string>
<string name="volume_key_cursor_control_off">Disabled</string>
<string name="volume_key_cursor_control_on">Volume Up/Down - Cursor Left/Right</string>
<string name="volume_key_cursor_control_on_reverse">Volume Up/Down - Cursor Right/Left</string>
</resources>

View File

@@ -41,6 +41,15 @@
android:title="@string/volume_rocker_wake_title"
android:defaultValue="false"
android:disableDependentsState="true" />
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="volume_key_cursor_control"
android:summary="%s"
android:title="@string/volume_key_cursor_control_title"
android:dialogTitle="@string/volume_key_cursor_control_title"
android:entries="@array/volume_key_cursor_control_entries"
android:entryValues="@array/volume_key_cursor_control_values"
android:defaultValue="0" />
</PreferenceCategory>
<PreferenceCategory