Commit f59e9f3b authored by Abdu Mohamdy's avatar Abdu Mohamdy
Browse files

playlist rearrangement and length of playlist

parent a760a147
......@@ -266,10 +266,13 @@ public abstract class FlightEngine implements FlightPlaylist {
* @param up : True: move up. False: move down
*/
public void moveInQueue(int index, boolean up) {
if ((index == 0 && up) || (index == playQueue.size() - 1 && !up))
if ((index == 0 && up) || (index == this.playQueue.size() - 1 && !up))
return;
Collections.swap(this.playQueue, index, index + (up ? -1 : 1));
if (index == playIndex) // moving the current playlist, adjust index
this.playIndex += (up ? -1 : 1);
}
// PRIVATE FUNCTIONS
......
......@@ -108,7 +108,7 @@ public class Playlist{
}
public double getPlaylistLength(LX lx) {
// Return length of MasterClip
// Return the length of the Master Clip
return playlistArray
.get(0)
.getAsJasonObject()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment