diff options
Diffstat (limited to 'src/de/podfetcher/activity/DownloadActivity.java')
-rw-r--r-- | src/de/podfetcher/activity/DownloadActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/de/podfetcher/activity/DownloadActivity.java b/src/de/podfetcher/activity/DownloadActivity.java index 3a5a57e5b..48a18eb0f 100644 --- a/src/de/podfetcher/activity/DownloadActivity.java +++ b/src/de/podfetcher/activity/DownloadActivity.java @@ -9,6 +9,7 @@ import de.podfetcher.feed.FeedFile; import com.actionbarsherlock.app.SherlockListActivity; import android.os.Bundle; +import android.util.Log; public class DownloadActivity extends SherlockListActivity { private static final String TAG = "DownloadActivity"; @@ -25,6 +26,13 @@ public class DownloadActivity extends SherlockListActivity { new FeedFile[requester.getMediaDownloads().size()])); } + + @Override + protected void onStop() { + super.onStop(); + Log.d(TAG, "Stopping Activity"); + observer.cancel(true); + } private final DownloadObserver observer = new DownloadObserver(this) { @Override |