diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-09-26 12:51:59 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-09-26 12:51:59 +0200 |
commit | 14d05bde1c21e0720d48dfba8b0095b6c50323d0 (patch) | |
tree | 8f74ec237bba05ac30e59c06dd7deeeaabef5ad8 /src/de/danoeh/antennapod/activity | |
parent | ff364f13f99c021657cdaceaf25728d8a33afa2d (diff) | |
download | AntennaPod-14d05bde1c21e0720d48dfba8b0095b6c50323d0.zip |
Release PlaybackController in onDestroy() method in MediaplayerActivity
Diffstat (limited to 'src/de/danoeh/antennapod/activity')
-rw-r--r-- | src/de/danoeh/antennapod/activity/MediaplayerActivity.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java index 91f2f99a2..45c5f55a5 100644 --- a/src/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/src/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -186,7 +186,16 @@ public abstract class MediaplayerActivity extends SherlockFragmentActivity super.onStop(); if (AppConfig.DEBUG) Log.d(TAG, "Activity stopped"); - controller.release(); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + if (AppConfig.DEBUG) + Log.d(TAG, "Activity destroyed"); + if (controller != null) { + controller.release(); + } } @Override |