aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-04-24 17:23:41 -0700
committerScott Jackson <daneren2005@gmail.com>2015-04-24 17:23:41 -0700
commit8da0f3b4c69a0d782fecd57707d7659178716cdd (patch)
treedd96cc1e2366fe6bf9c598fd38177a0ca3753bb2 /src
parent241ac622a0767f26af706db6b0268ff1382e2716 (diff)
downloaddsub-8da0f3b4c69a0d782fecd57707d7659178716cdd.tar.gz
dsub-8da0f3b4c69a0d782fecd57707d7659178716cdd.tar.bz2
dsub-8da0f3b4c69a0d782fecd57707d7659178716cdd.zip
Fix crash if user backs out during remote operation
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index 330f91bb..ca0ac2f6 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -570,7 +570,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
}.execute();
}
private void loadRemotePlayQueue() {
- final Context context = this;
+ final SubsonicActivity context = this;
new SilentBackgroundTask<Void>(this) {
private PlayerQueue playerQueue;
@@ -605,7 +605,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
@Override
protected void done(Void arg) {
- if(playerQueue != null) {
+ if(!context.isDestroyedCompat() && playerQueue != null) {
promptRestoreFromRemoteQueue(playerQueue);
}
}