Disable seek bar when paused
This commit is contained in:
parent
6123a81dfa
commit
4945c9c47b
@ -92,6 +92,7 @@ public class NowPlayingActivity extends Activity implements CoverViewWatcher, Se
|
|||||||
mLayout.removeView(mMessageBox);
|
mLayout.removeView(mMessageBox);
|
||||||
mMessageBox = null;
|
mMessageBox = null;
|
||||||
}
|
}
|
||||||
|
mSeekBar.setEnabled(state == MusicPlayer.STATE_PLAYING);
|
||||||
mPlayPauseButton.setImageResource(state == MusicPlayer.STATE_PLAYING ? R.drawable.pause : R.drawable.play);
|
mPlayPauseButton.setImageResource(state == MusicPlayer.STATE_PLAYING ? R.drawable.pause : R.drawable.play);
|
||||||
break;
|
break;
|
||||||
case MusicPlayer.STATE_NO_MEDIA:
|
case MusicPlayer.STATE_NO_MEDIA:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user