Cherish:Torch long press power: add with auto-off function

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Sam Mortimer
2018-08-30 16:09:26 +08:00
committed by Hưng Phan
parent cbe6fdc678
commit e208dd915d
5 changed files with 85 additions and 2 deletions

View File

@@ -18,4 +18,20 @@
android:title="@string/gestures_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:icon="@drawable/ic_torch"
android:key="torch_long_press_power_gesture"
android:title="@string/torch_long_press_power_gesture_title"
android:summary="@string/torch_long_press_power_gesture_desc"
android:defaultValue="false" />
<ListPreference
android:key="torch_long_press_power_timeout"
android:dialogTitle="@string/torch_long_press_power_timeout_title"
android:title="@string/torch_long_press_power_timeout_title"
android:summary="%s"
android:entries="@array/torch_long_press_power_timeout_entries"
android:entryValues="@array/torch_long_press_power_timeout_values"
android:dependency="torch_long_press_power_gesture"
android:persistent="false" />
</PreferenceScreen>