Update the duration even when paused

This gets a little hacky. It might be worthwhile to look into a different
solution.
This commit is contained in:
Christopher Eby 2010-02-19 18:58:16 -06:00
parent c1324ff366
commit 41dc843dcc

@ -200,6 +200,16 @@ public class NowPlayingActivity extends Activity implements CoverViewWatcher, Se
{
mStartTime = startTime;
mDuration = duration;
runOnUiThread(new Runnable() {
public void run()
{
if (mState != MusicPlayer.STATE_PLAYING) {
String text = mSeekText.getText().toString();
text = text.substring(0, text.indexOf('/') + 2) + stringForTime(mDuration);
mSeekText.setText(text);
}
}
});
}
};