aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
Diffstat (limited to 'src/github/daneren2005')
-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);
}
}