Reload media info later if playbackservice has no media object when it's

queried
This commit is contained in:
daniel oeh 2012-09-22 10:55:24 +02:00
parent 81fbf3bcb6
commit 952c6aa331
1 changed files with 4 additions and 1 deletions

View File

@ -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,