[3/3] Torch long press power: add auto-off function
Change-Id: I701cd239a355c6e4ddbed858262d89e21c5b8fae
diff --git a/res/xml/button_settings.xml b/res/xml/button_settings.xml
index ad28e0c..9b71607 100644
--- a/res/xml/button_settings.xml
+++ b/res/xml/button_settings.xml
@@ -99,6 +99,15 @@
android:defaultValue="false"
cm:requiresConfig="@*android:bool/config_supportLongPressPowerWhenNonInteractive" />
+ <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: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" />
+
</PreferenceCategory>
<PreferenceCategory