diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-06-22 10:54:23 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-06-22 10:54:23 -0700 |
commit | 5b7a4c3e458f78dfee22b930c18779e61f16b57e (patch) | |
tree | 771b3f162efb4debea690be0ea1f7fe7ade7dc5e /src | |
parent | a9d88e4525eaacf3f435cdc6d64a2e26e3ed0077 (diff) | |
download | dsub-5b7a4c3e458f78dfee22b930c18779e61f16b57e.tar.gz dsub-5b7a4c3e458f78dfee22b930c18779e61f16b57e.tar.bz2 dsub-5b7a4c3e458f78dfee22b930c18779e61f16b57e.zip |
Fix infinite error if user switches to bad server
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/util/UserUtil.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/util/UserUtil.java b/src/github/daneren2005/dsub/util/UserUtil.java index d75c170e..b5cead77 100644 --- a/src/github/daneren2005/dsub/util/UserUtil.java +++ b/src/github/daneren2005/dsub/util/UserUtil.java @@ -20,6 +20,7 @@ import android.app.AlertDialog; import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
+import android.util.Log;
import android.view.View;
import android.widget.Adapter;
import android.widget.ArrayAdapter;
@@ -38,6 +39,7 @@ import github.daneren2005.dsub.service.ServerTooOldException; import github.daneren2005.dsub.view.SettingsAdapter;
public final class UserUtil {
+ private static final String TAG = UserUtil.class.getSimpleName();
private static User currentUser;
public static void seedCurrentUser(final Context context) {
@@ -52,6 +54,12 @@ public final class UserUtil { currentUser = MusicServiceFactory.getMusicService(context).getUser(false, getCurrentUsername(context), context, null);
return null;
}
+
+ @Override
+ protected void error(Throwable error) {
+ // Don't do anything, supposed to be background pull
+ Log.e(TAG, "Failed to seed user information");
+ }
}.execute();
}
|