aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-02 18:19:05 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-02 18:19:05 -0700
commit912462373a8473eff600743d472049436c846aae (patch)
tree9143c2db4c6ed36cde13f6afb6a4ea5ade7b4ad5 /src/github/daneren2005
parent9e30f5f84a27a11911498af13fb33b916cf05bfd (diff)
downloaddsub-912462373a8473eff600743d472049436c846aae.tar.gz
dsub-912462373a8473eff600743d472049436c846aae.tar.bz2
dsub-912462373a8473eff600743d472049436c846aae.zip
#324 Remember folder selection when switching between servers
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/activity/SettingsActivity.java2
-rw-r--r--src/github/daneren2005/dsub/util/Util.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java
index afd6cb30..f3d564a1 100644
--- a/src/github/daneren2005/dsub/activity/SettingsActivity.java
+++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java
@@ -170,6 +170,8 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer
SharedPreferences.Editor editor = settings.edit();
editor.putInt(Constants.PREFERENCES_KEY_SERVER_COUNT, serverCount);
+ // Reset set folder ID
+ editor.putString(Constants.PREFERENCES_KEY_MUSIC_FOLDER_ID + instance, null);
editor.commit();
serverSettings.put(instance, new ServerSettings(instance));
diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java
index 5887b088..a18cc975 100644
--- a/src/github/daneren2005/dsub/util/Util.java
+++ b/src/github/daneren2005/dsub/util/Util.java
@@ -162,7 +162,6 @@ public final class Util {
SharedPreferences prefs = getPreferences(context);
SharedPreferences.Editor editor = prefs.edit();
editor.putInt(Constants.PREFERENCES_KEY_SERVER_INSTANCE, instance);
- editor.putString(Constants.PREFERENCES_KEY_MUSIC_FOLDER_ID + instance, null);
editor.commit();
}