aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-23 13:07:01 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-23 13:07:01 -0800
commit60b2b93c80ec35d91553b3336892b12eb24911e1 (patch)
tree178e71587bdcf5efefdb7bfd66e971b8e5e5b88e
parentce4684ad9618f063abf3eb4a42cb81361a17be1d (diff)
downloaddsub-60b2b93c80ec35d91553b3336892b12eb24911e1.tar.gz
dsub-60b2b93c80ec35d91553b3336892b12eb24911e1.tar.bz2
dsub-60b2b93c80ec35d91553b3336892b12eb24911e1.zip
Fix 4.1- issue
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicActivity.java2
-rw-r--r--src/github/daneren2005/dsub/util/LoadingTask.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
index c1534639..62349480 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java
@@ -649,7 +649,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte
}
}
- public boolean isDestroyed() {
+ public boolean isDestroyedCompat() {
return destroyed;
}
diff --git a/src/github/daneren2005/dsub/util/LoadingTask.java b/src/github/daneren2005/dsub/util/LoadingTask.java
index c47931ee..17215abd 100644
--- a/src/github/daneren2005/dsub/util/LoadingTask.java
+++ b/src/github/daneren2005/dsub/util/LoadingTask.java
@@ -52,7 +52,7 @@ public abstract class LoadingTask<T> extends BackgroundTask<T> {
@Override
protected boolean isCancelled() {
- return (tabActivity instanceof SubsonicActivity && tabActivity.isDestroyed()) || cancelled;
+ return (tabActivity instanceof SubsonicActivity && ((SubsonicActivity) tabActivity).isDestroyedCompat()) || cancelled;
}
@Override