From fb7d03326898245f9797c8f919f643f224be573f Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 24 May 2013 09:08:49 -0700 Subject: Setup default count --- .../src/github/daneren2005/dsub/activity/MainActivity.java | 4 ++-- 1 file 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(); } } -- cgit v1.2.3