Cherish: Wake on plug (2/2)

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Jon Evans
2017-09-12 13:38:48 +08:00
committed by Hưng Phan
parent e208dd915d
commit e12344c210
2 changed files with 11 additions and 1 deletions

View File

@@ -146,4 +146,8 @@
<string name="torch_long_press_power_timeout_2min">2 minutes</string>
<string name="torch_long_press_power_timeout_5min">5 minutes</string>
<string name="torch_long_press_power_timeout_10min">10 minutes</string>
<!-- Wakeup options -->
<string name="wakeup_when_plugged_unplugged_title">Wake up on charge</string>
<string name="wakeup_when_plugged_unplugged_summary">Wake up device if charger is plugged/unplugged.</string>
</resources>

View File

@@ -15,7 +15,13 @@
-->
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/misc_title"
android:title="@string/misc_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.GlobalSettingSwitchPreference
android:icon="@drawable/ic_plug"
android:key="wake_when_plugged_or_unplugged"
android:title="@string/wakeup_when_plugged_unplugged_title"
android:summary="@string/wakeup_when_plugged_unplugged_summary"
android:defaultValue="true" />
</PreferenceScreen>