@Override
public void run() {
if (mProgress != null) {
long position = MusicPlayer.position();
long duration = MusicPlayer.duration();
<BUG>if (duration > 0)
mProgress.setProgress((int) (mProgress.getMax() * position / duration));

timePlayed.setText(MusicUtils.makeShortTimeString(PlayingActivity.this.getApplication(), position / 1000));
if (MusicPlayer.isPlaying()) {
mProgress.postDelayed(mUpdateProgress, 100);

}</BUG>
}

@Override
public void updateBuffer(int p) {
mProgress.setSecondaryProgress(p*10);
