From 952c6aa331d7f9edaa886264057803632c3c9240 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sat, 22 Sep 2012 10:55:24 +0200 Subject: [PATCH] Reload media info later if playbackservice has no media object when it's queried --- src/de/danoeh/antennapod/util/PlaybackController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/de/danoeh/antennapod/util/PlaybackController.java b/src/de/danoeh/antennapod/util/PlaybackController.java index 0253eba02..38b5201e7 100644 --- a/src/de/danoeh/antennapod/util/PlaybackController.java +++ b/src/de/danoeh/antennapod/util/PlaybackController.java @@ -149,7 +149,8 @@ public abstract class PlaybackController { if (AppConfig.DEBUG) Log.d(TAG, "PlaybackService is running, trying to connect without start command."); - bound = activity.bindService(new Intent(activity, PlaybackService.class), mConnection, 0); + bound = activity.bindService(new Intent(activity, + PlaybackService.class), mConnection, 0); } if (AppConfig.DEBUG) Log.d(TAG, "Result for service binding: " + bound); @@ -405,6 +406,8 @@ public abstract class PlaybackController { setupGUI(); handleStatus(); + // make sure that new media is loaded if it's available + mediaInfoLoaded = false; } else { Log.e(TAG,