Fixed play/pause state to be correct after playlist is over.
This commit is contained in:
parent
c69bb01b7b
commit
017c8a6411
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue