Added queue total time in playing screen
This commit is contained in:
parent
f0a648e8e8
commit
ae1af52bb6
4 changed files with 18 additions and 0 deletions
|
|
@ -946,6 +946,13 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
|||
return playback.duration();
|
||||
}
|
||||
|
||||
public int getQueueDurationMillis(int position) {
|
||||
int ret=0;
|
||||
for(int i=position+1;i<playingQueue.size();i++)
|
||||
ret+=playingQueue.get(i).duration;
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int seek(int millis) {
|
||||
synchronized (this) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue