summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java
index 38ce1d0..7a63af5 100644
--- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java
@@ -101,6 +101,8 @@ public class Preferences {
private boolean showTmdbButton = false;
private int maxRecentChannels = 10;
+
+ private boolean clearTermAfterSearch = false;
public int getMaxRecentChannels() {
return maxRecentChannels;
@@ -518,6 +520,8 @@ public class Preferences {
prefs.maxRecentChannels = getInt(context,
R.string.gui_max_recent_channels_key, 10);
+
+ prefs.clearTermAfterSearch = getBoolean(context, R.string.clear_term_after_search_key, false);
thePrefs = prefs;
}
@@ -770,4 +774,8 @@ public class Preferences {
config.locale = locale;
context.getResources().updateConfiguration(config, null);
}
+
+ public boolean isClearTermAfterSearch() {
+ return clearTermAfterSearch;
+ }
}