aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-18 14:47:25 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-18 14:47:25 -0800
commitff394f3e0c0c35c607d0c97ab6a22c209c9254e8 (patch)
tree2bce4d95bb275bdc16d770a8ef9ca89d426241dd /src/github
parentdd7b96daca111c45610895a78bbed1a53b5f531c (diff)
downloaddsub-ff394f3e0c0c35c607d0c97ab6a22c209c9254e8.tar.gz
dsub-ff394f3e0c0c35c607d0c97ab6a22c209c9254e8.tar.bz2
dsub-ff394f3e0c0c35c607d0c97ab6a22c209c9254e8.zip
Fix crash when we fail to download from url
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/util/ImageLoader.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/util/ImageLoader.java b/src/github/daneren2005/dsub/util/ImageLoader.java
index 9a790b7a..3d554496 100644
--- a/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -454,6 +454,9 @@ public class ImageLoader {
@Override
protected void failedToDownload() {
new ViewImageTask(mContext, mEntry, mSize, mSaveSize, mIsNowPlaying, mView, mCrossfade).execute();
+
+ // Delete subTask so it doesn't get called in done
+ subTask = null;
}
};
} else {