Cherish: Wake on plug (2/2)
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -146,4 +146,8 @@
|
|||||||
<string name="torch_long_press_power_timeout_2min">2 minutes</string>
|
<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_5min">5 minutes</string>
|
||||||
<string name="torch_long_press_power_timeout_10min">10 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>
|
</resources>
|
||||||
@@ -15,7 +15,13 @@
|
|||||||
-->
|
-->
|
||||||
<PreferenceScreen
|
<PreferenceScreen
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
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">
|
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>
|
</PreferenceScreen>
|
||||||
|
|||||||
Reference in New Issue
Block a user