From 41dc843dcc95253a5d9c9159d8624dd83c530565 Mon Sep 17 00:00:00 2001 From: Christopher Eby Date: Fri, 19 Feb 2010 18:58:16 -0600 Subject: [PATCH] Update the duration even when paused This gets a little hacky. It might be worthwhile to look into a different solution. --- src/org/kreed/tumult/NowPlayingActivity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/org/kreed/tumult/NowPlayingActivity.java b/src/org/kreed/tumult/NowPlayingActivity.java index 401130d8..763c9546 100644 --- a/src/org/kreed/tumult/NowPlayingActivity.java +++ b/src/org/kreed/tumult/NowPlayingActivity.java @@ -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); + } + } + }); } };