aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorMark Adamson <markadamson83@gmail.com>2015-03-20 13:57:33 +0000
committerMark Adamson <markadamson83@gmail.com>2015-03-20 13:57:33 +0000
commite9a4a2839b205c4351cc2ade00f4e4b5efb7dc29 (patch)
treecf39b9e9c11685652bd2d4ed82d802a00bc77a69 /res
parent34e679f3c63fcda301f3faf654c580721a10c070 (diff)
downloaddsub-e9a4a2839b205c4351cc2ade00f4e4b5efb7dc29.tar.gz
dsub-e9a4a2839b205c4351cc2ade00f4e4b5efb7dc29.tar.bz2
dsub-e9a4a2839b205c4351cc2ade00f4e4b5efb7dc29.zip
Add option to disable 'Press back again to exit' prompt
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml2
-rw-r--r--res/xml/settings.xml6
2 files changed, 8 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 85c94dcf..bcd4917a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -427,6 +427,8 @@
<string name="settings.menu_options.rate_summary">Show Rating in menus</string>
<string name="settings.browse_by_tags">Browse By Tags</string>
<string name="settings.browse_by_tags_summary">Browse by tags instead of by folder structure. Requires Subsonic 4.7+</string>
+ <string name="settings.disable_exit_prompt">Disable Exit Prompt</string>
+ <string name="settings.disable_exit_prompt_summary">Exit the app immediately upon pressing back from the home screen</string>
<string name="settings.override_system_language">Override System Language</string>
<string name="settings.override_system_language_summary">Display app in english even if the system language is something DSub has a translation for. May need to clear the app from memory for changes to take affect.</string>
<string name="settings.drawer_items_title">Drawer Tabs</string>
diff --git a/res/xml/settings.xml b/res/xml/settings.xml
index 91b9ea1a..4179f0a8 100644
--- a/res/xml/settings.xml
+++ b/res/xml/settings.xml
@@ -64,6 +64,12 @@
android:entries="@array/defaultDrawerItems"
android:defaultValue="Home"/>
+ <CheckBoxPreference
+ android:title="@string/settings.disable_exit_prompt"
+ android:summary="@string/settings.disable_exit_prompt_summary"
+ android:key="disableExitPrompt"
+ android:defaultValue="false"/>
+
<CheckBoxPreference
android:title="@string/settings.override_system_language"
android:summary="@string/settings.override_system_language_summary"