Fixed play/pause state to be correct after playlist is over.

This commit is contained in:
Felix Ableitner 2014-01-05 20:26:35 +01:00
parent c69bb01b7b
commit 017c8a6411

View file

@ -560,9 +560,11 @@ public class RouteFragment extends MediaRouteDiscoveryFragment implements
mProgressBar.setProgress(currentTime); mProgressBar.setProgress(currentTime);
mProgressBar.setMax(totalTime); mProgressBar.setMax(totalTime);
if (status.getPlaybackState() != MediaItemStatus.PLAYBACK_STATE_PLAYING && if (status.getPlaybackState() == MediaItemStatus.PLAYBACK_STATE_PLAYING ||
status.getPlaybackState() != MediaItemStatus.PLAYBACK_STATE_BUFFERING && status.getPlaybackState() == MediaItemStatus.PLAYBACK_STATE_BUFFERING ||
status.getPlaybackState() != MediaItemStatus.PLAYBACK_STATE_PENDING) status.getPlaybackState() == MediaItemStatus.PLAYBACK_STATE_PENDING)
changePlayPauseState(true);
else
changePlayPauseState(false); changePlayPauseState(false);
if (mListView.getAdapter() == mPlaylistAdapter) if (mListView.getAdapter() == mPlaylistAdapter)