aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005/dsub/util/Util.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005/dsub/util/Util.java')
-rw-r--r--src/github/daneren2005/dsub/util/Util.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index ce6ba914..83e8deee 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -279,6 +279,11 @@ public final class Util {
SharedPreferences prefs = getPreferences(context);
return prefs.getString(Constants.PREFERENCES_KEY_THEME, null);
}
+ public static void setTheme(Context context, String theme) {
+ SharedPreferences.Editor editor = getPreferences(context).edit();
+ editor.putString(Constants.PREFERENCES_KEY_THEME, theme);
+ editor.commit();
+ }
public static boolean getDisplayTrack(Context context) {
SharedPreferences prefs = getPreferences(context);