Disable seek bar when paused

This commit is contained in:
Christopher Eby 2010-02-19 22:23:38 -06:00
parent 6123a81dfa
commit 4945c9c47b

View File

@ -92,6 +92,7 @@ public class NowPlayingActivity extends Activity implements CoverViewWatcher, Se
mLayout.removeView(mMessageBox);
mMessageBox = null;
}
mSeekBar.setEnabled(state == MusicPlayer.STATE_PLAYING);
mPlayPauseButton.setImageResource(state == MusicPlayer.STATE_PLAYING ? R.drawable.pause : R.drawable.play);
break;
case MusicPlayer.STATE_NO_MEDIA: