diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-11-20 10:30:59 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-11-20 10:30:59 -0800 |
commit | d3c772678ba680461cbe17e416b98bacd74eb755 (patch) | |
tree | efa0497c8c8c6a4e7dade4737003ecb1c91f16c9 | |
parent | b044e7918ee30fe111f3c52e74cbd531f2e4cca5 (diff) | |
download | dsub-d3c772678ba680461cbe17e416b98bacd74eb755.tar.gz dsub-d3c772678ba680461cbe17e416b98bacd74eb755.tar.bz2 dsub-d3c772678ba680461cbe17e416b98bacd74eb755.zip |
Don't switch servers to ping, causes getRandomSongs to fire again
-rw-r--r-- | src/github/daneren2005/dsub/activity/SettingsActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java index 59fe8cac..2369f9f0 100644 --- a/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -588,13 +588,13 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer previousInstance = Util.getActiveServer(SettingsActivity.this); testingConnection = true; - Util.setActiveServer(SettingsActivity.this, instance); + MusicService musicService = MusicServiceFactory.getMusicService(SettingsActivity.this); try { - MusicService musicService = MusicServiceFactory.getMusicService(SettingsActivity.this); + musicService.setInstance(instance); musicService.ping(SettingsActivity.this, this); return musicService.isLicenseValid(SettingsActivity.this, null); } finally { - Util.setActiveServer(SettingsActivity.this, previousInstance); + musicService.setInstance(null); testingConnection = false; } } |