Enable seeking while paused

I am not too sure why I had this disabled to begin with
This commit is contained in:
Christopher Eby committed 2010-03-20 00:30:26 -05:00
1 parent 7f3dd9544d
commit 5fde2d3b82
2 files changed
-3

No files matched your search

@@ -164,7 +164,6 @@ public class NowPlayingActivity extends PlaybackServiceActivity implements View.
if (state == PlaybackService.STATE_NORMAL)
mControlsBottom.setVisibility(View.VISIBLE);
mSeekBar.setEnabled(state == PlaybackService.STATE_PLAYING);
mPlayPauseButton.setImageResource(state == PlaybackService.STATE_PLAYING ? R.drawable.pause : R.drawable.play);
break;
case PlaybackService.STATE_NO_MEDIA:
@@ -115,8 +115,6 @@ public class PlaybackService extends Service implements Runnable, MediaPlayer.On
if (mMediaPlayer == null)
return;
synchronized (mMediaPlayer) {
if (!mMediaPlayer.isPlaying())
return;
long position = (long)mMediaPlayer.getDuration() * progress / 1000;
mMediaPlayer.seekTo((int)position);
}