[2/2] OmniGears: Add more Power Menu Options
part 1: https://gerrit.omnirom.org/#/c/3653/
Change-Id: Iaff1b0ee7be18dc5a768d5d031077ae7d13273f5
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index 85df0dd..ae25a3f 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -213,6 +213,12 @@
<string name="power_menu_toggle_screenshot_summary">Show screenshot option in Power Menu</string>
<string name="power_menu_toggle_screenrecord_title">Screen Record</string>
<string name="power_menu_toggle_screenrecord_summary">Show screen Record option in Power Menu</string>
+ <string name="power_menu_toggle_mobile_data_title">Mobile Data</string>
+ <string name="power_menu_toggle_mobile_data_summary">Show Mobile Data option in Power Menu</string>
+ <string name="power_menu_toggle_airplane_mode_title">Airplane mode</string>
+ <string name="power_menu_toggle_airplane_mode_summary">Show Airplane option in Power Menu</string>
+ <string name="power_menu_toggle_sound_toggles_title">Sound toggles</string>
+ <string name="power_menu_toggle_sound_toggles_summary">Show sound toggles in Power Menu</string>
<!-- Active Display Notifications -->
<string name="ad_settings_title">Active display</string>
diff --git a/res/xml/menus_settings.xml b/res/xml/menus_settings.xml
index 4858f90..6c2bd93 100644
--- a/res/xml/menus_settings.xml
+++ b/res/xml/menus_settings.xml
@@ -26,6 +26,12 @@
android:title="@string/bars_and_menus_category_power_menu_title">
<CheckBoxPreference
+ android:key="power_menu_mobile_data"
+ android:title="@string/power_menu_toggle_mobile_data_title"
+ android:summary="@string/power_menu_toggle_mobile_data_summary"
+ android:persistent="false"/>
+
+ <CheckBoxPreference
android:key="power_menu_screenshot"
android:title="@string/power_menu_toggle_screenshot_title"
android:summary="@string/power_menu_toggle_screenshot_summary"
@@ -36,6 +42,18 @@
android:title="@string/power_menu_toggle_screenrecord_title"
android:summary="@string/power_menu_toggle_screenrecord_summary"
android:persistent="false"/>
+
+ <CheckBoxPreference
+ android:key="power_menu_airplane_mode"
+ android:title="@string/power_menu_toggle_airplane_mode_title"
+ android:summary="@string/power_menu_toggle_airplane_mode_summary"
+ android:persistent="false"/>
+
+ <CheckBoxPreference
+ android:key="power_menu_sound_toggles"
+ android:title="@string/power_menu_toggle_sound_toggles_title"
+ android:summary="@string/power_menu_toggle_sound_toggles_summary"
+ android:persistent="false"/>
</PreferenceCategory>
</PreferenceScreen>