Bug fixing
- clean ups - media player null pointer bug fixed - async playing queue saving working now
This commit is contained in:
parent
26d85b44ce
commit
594a328311
3 changed files with 54 additions and 29 deletions
|
|
@ -269,7 +269,6 @@ public class MusicControllerActivity extends AbsFabActivity implements OnMusicRe
|
|||
if (fromUser) {
|
||||
getApp().getMusicPlayerRemote().seekTo(progress);
|
||||
}
|
||||
currentSongProgress.setText(MusicUtil.getReadableDurationString(progress));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -365,8 +364,16 @@ public class MusicControllerActivity extends AbsFabActivity implements OnMusicRe
|
|||
return;
|
||||
} catch (Exception e) {
|
||||
}
|
||||
progressSlider.setMax(total);
|
||||
progressSlider.setProgress(currentPosition);
|
||||
final int finalTotal = total;
|
||||
final int finalCurrentPosition = currentPosition;
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
progressSlider.setMax(finalTotal);
|
||||
progressSlider.setProgress(finalCurrentPosition);
|
||||
currentSongProgress.setText(MusicUtil.getReadableDurationString(finalCurrentPosition));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}).start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue