summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/de')
-rw-r--r--src/de/podfetcher/activity/MediaplayerActivity.java14
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);
}
}