close queue window after killing the queue and update mCurrentPos
This commit is contained in:
1 parent
c02b77cafe
commit
0fc5b5bc70
2 files changed
+4
-2
No files matched your search
@@ -96,6 +96,7 @@ public class ShowQueueActivity extends PlaybackActivity
|
||||
break;
|
||||
case MENU_EMPTY_QUEUE:
|
||||
PlaybackService.get(this).emptyQueue();
|
||||
finish();
|
||||
break;
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
|
||||
@@ -777,9 +777,9 @@ public final class SongTimeline {
|
||||
saveActiveSongs();
|
||||
if (mCurrentPos + 1 < mSongs.size())
|
||||
mSongs.subList(mCurrentPos + 1, mSongs.size()).clear();
|
||||
broadcastChangedSongs();
|
||||
}
|
||||
|
||||
broadcastChangedSongs();
|
||||
changed();
|
||||
}
|
||||
|
||||
@@ -791,9 +791,10 @@ public final class SongTimeline {
|
||||
synchronized (this) {
|
||||
saveActiveSongs();
|
||||
mSongs.clear();
|
||||
mCurrentPos = 0;
|
||||
broadcastChangedSongs();
|
||||
}
|
||||
|
||||
broadcastChangedSongs();
|
||||
changed();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user