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:
parent
c1324ff366
commit
41dc843dcc
@ -200,6 +200,16 @@ public class NowPlayingActivity extends Activity implements CoverViewWatcher, Se
|
|||||||
{
|
{
|
||||||
mStartTime = startTime;
|
mStartTime = startTime;
|
||||||
mDuration = duration;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user