aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-24 09:08:49 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-24 09:08:49 -0700
commitfb7d03326898245f9797c8f919f643f224be573f (patch)
tree2adb6c498ab32f4363af817e82bd571aa7fa7f52
parent579cf4e85e4ce825eaca9494821f0c369f5ab37c (diff)
downloaddsub-fb7d03326898245f9797c8f919f643f224be573f.tar.gz
dsub-fb7d03326898245f9797c8f919f643f224be573f.tar.bz2
dsub-fb7d03326898245f9797c8f919f643f224be573f.zip
Setup default count
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
index 6ab62662..8a9d1b14 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
@@ -270,9 +270,9 @@ public class MainActivity extends SubsonicActivity {
editor.putInt(Constants.PREFERENCES_KEY_SERVER_INSTANCE, 1);
editor.commit();
}
- if(prefs.getInt(Constants.PREFERENCES_KEY_SERVER_INSTANCE, -1) < 0) {
+ if(!prefs.contains(Constants.PREFERENCES_KEY_SERVER_COUNT)) {
SharedPreferences.Editor editor = prefs.edit();
- editor.putInt(Constants.PREFERENCES_KEY_SERVER_INSTANCE, 0);
+ editor.putInt(Constants.PREFERENCES_KEY_SERVER_COUNT, 3);
editor.commit();
}
}