File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,15 @@ public List<Video> getAll() {
235235 return Collections .unmodifiableList (mPlaylist );
236236 }
237237
238+ public List <Video > getAllReversed () {
239+ List <Video > reversed = new ArrayList <>(mPlaylist .size ());
240+ for (int i = mPlaylist .size () - 1 ; i >= 0 ; i --) {
241+ reversed .add (mPlaylist .get (i ));
242+ }
243+
244+ return reversed ;
245+ }
246+
238247 public List <Video > getChangedItems () {
239248 return Collections .unmodifiableList (mSyncedItems );
240249 }
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ private void initSettingsGridMapping() {
267267 }
268268
269269 private void initLocalGridMapping () {
270- mLocalGridMappings .put (MediaGroup .TYPE_PLAYBACK_QUEUE , () -> Playlist .instance ().getAll ());
270+ mLocalGridMappings .put (MediaGroup .TYPE_PLAYBACK_QUEUE , () -> Playlist .instance ().getAllReversed ());
271271 mLocalGridMappings .put (MediaGroup .TYPE_BLOCKED_CHANNELS , this ::getBlockedChannels );
272272 }
273273
You can’t perform that action at this time.
0 commit comments