diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-06-24 13:01:44 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-06-24 13:01:44 +0200 |
commit | 7cd38e53a7d9a3febb11a4476d13af3bc8d381c0 (patch) | |
tree | af10618408110748367d098b5441ec07c7dbd1bd /src/de/podfetcher | |
parent | d8d4d286028c734de2f684254e99c6484d586bff (diff) | |
download | AntennaPod-7cd38e53a7d9a3febb11a4476d13af3bc8d381c0.zip |
Fixed bug in the mediaplayer
Diffstat (limited to 'src/de/podfetcher')
-rw-r--r-- | src/de/podfetcher/activity/MediaplayerActivity.java | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/de/podfetcher/activity/MediaplayerActivity.java b/src/de/podfetcher/activity/MediaplayerActivity.java index 4b6e07419..dd1926736 100644 --- a/src/de/podfetcher/activity/MediaplayerActivity.java +++ b/src/de/podfetcher/activity/MediaplayerActivity.java @@ -59,8 +59,16 @@ public class MediaplayerActivity extends SherlockActivity { protected void onStop() { super.onStop(); Log.d(TAG, "Activity stopped"); - unregisterReceiver(statusUpdate); - unbindService(mConnection); + try { + unregisterReceiver(statusUpdate); + } catch (IllegalArgumentException e) { + // ignore + } + try { + unbindService(mConnection); + } catch (IllegalArgumentException e) { + // ignore + } if (positionObserver != null) { positionObserver.cancel(true); } @@ -158,7 +166,7 @@ public class MediaplayerActivity extends SherlockActivity { butPlay.setImageResource(android.R.drawable.ic_media_play); break; case SEEKING: - setStatusMsg(R.string.player_seeking_msg, View.VISIBLE); + setStatusMsg(R.string.player_seeking_msg, View.VISIBLE); } } |