diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-06-05 19:45:34 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-06-05 19:45:34 -0700 |
commit | 481164ef0ff4d41900b07470d424b842b3e4b98a (patch) | |
tree | e4ad58ffcedd6285e62c5e6ad084000f01c7a549 | |
parent | 159666413e25ff8576f4ac01beeef64320ec393b (diff) | |
parent | 52d5958c3804fbe0c0908b00b2f8c2a6cbf512be (diff) | |
download | dsub-481164ef0ff4d41900b07470d424b842b3e4b98a.tar.gz dsub-481164ef0ff4d41900b07470d424b842b3e4b98a.tar.bz2 dsub-481164ef0ff4d41900b07470d424b842b3e4b98a.zip |
Merge branch 'master' of https://github.com/daneren2005/Subsonic.git
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/Util.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/Util.java b/subsonic-android/src/github/daneren2005/dsub/util/Util.java index 45875514..818a4f67 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/Util.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/Util.java @@ -198,10 +198,12 @@ public final class Util { editor.commit(); if (instance == activeInstance) { - Util.setActiveServer(context, 0); - } - - if (newInstance == activeInstance) { + if(instance != 1) { + Util.setActiveServer(context, 1); + } else { + Util.setOffline(context, true); + } + } else if (newInstance == activeInstance) { Util.setActiveServer(context, instance); } } |