[1/2] OmniGears: configure wakeup when plugged overlay
Change-Id: I486da504879163ec1d8e6f070cdf8152c8bc487b
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index bfdf8df..87b7b23 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -513,6 +513,8 @@
<string name="show_cpu_summary">Screen overlay showing current CPU info</string>
<string name="headset_plugged_notification_title">Headset notification</string>
<string name="headset_plugged_notification_summary">Show notification when connecting wired headsets</string>
+ <string name="wake_when_plugged_or_unplugged_title">Wake when plugged in/unplugged</string>
+ <string name="wake_when_plugged_or_unplugged_summary">Wake up the device when it is plugged in/unplugged from a charger</string>
<!-- Display : Rotation -->
<string name="category_display">Display</string>
diff --git a/res/xml/more_settings.xml b/res/xml/more_settings.xml
index d3aaf76..af90a69 100644
--- a/res/xml/more_settings.xml
+++ b/res/xml/more_settings.xml
@@ -75,5 +75,12 @@
android:entries="@array/screen_off_animation_entries"
android:entryValues="@array/screen_off_animation_values"
android:persistent="false"/>
+
+ <org.omnirom.omnigears.preference.GlobalSettingSwitchPreference
+ android:key="wake_when_plugged_or_unplugged"
+ android:title="@string/wake_when_plugged_or_unplugged_title"
+ android:summary="@string/wake_when_plugged_or_unplugged_summary"
+ android:defaultValue="@*android:bool/config_unplugTurnsOnScreen" />
+
</PreferenceCategory>
</PreferenceScreen>