[2/2] OmniGears: allow to swap volume buttons rotation based
Forward port from 4.4
Change-Id: I19c3ce7dded40726e7f448dfc90d02506bbee2a1
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index a4cde6c..5fa6caa 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -58,4 +58,8 @@
<string name="button_volume_wake_summary">Pressing a volume button will wake the device</string>
<string name="keys_action_sleep">Go to sleep</string>
<string name="keys_action_omniswitch">OmniSwitch recents</string>
+
+ <!-- Swap volume buttons when the screen is rotated -->
+ <string name="swap_volume_buttons_title">Match rotation</string>
+ <string name="swap_volume_buttons_summary">Adjust volume buttons action based on current rotation</string>
</resources>
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index 71a6f9c..bfe8b4e 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -61,12 +61,13 @@
android:dialogTitle="@string/volume_key_cursor_control_title"
android:title="@string/volume_key_cursor_control_title"
android:entries="@array/volume_key_cursor_control_entries"
- android:entryValues="@array/volume_key_cursor_control_values" />
+ android:entryValues="@array/volume_key_cursor_control_values" /> -->
- <org.omnirom.omnigears.preference.SystemCheckBoxPreference
+ <CheckBoxPreference
android:key="swap_volume_buttons"
android:title="@string/swap_volume_buttons_title"
- android:summary="@string/swap_volume_buttons_summary" />-->
+ android:summary="@string/swap_volume_buttons_summary"
+ android:persistent="false"/>
</PreferenceCategory>