Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bda812ee authored by Linus Lee's avatar Linus Lee
Browse files

Eleven: remove an unnecessary check when playing music to improve perf

Change-Id: Ic9b6d1ee2f80446013dd0794696e8cd66a73221e
parent 5c530126
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -871,15 +871,6 @@ public final class MusicUtils {
            if (forceShuffle) {
                mService.setShuffleMode(MusicPlaybackService.SHUFFLE_NORMAL);
            }
            final long currentId = mService.getAudioId();
            final int currentQueuePosition = getQueuePosition();
            if (position != -1 && currentQueuePosition == position && currentId == list[position]) {
                final long[] playlist = getQueue();
                if (Arrays.equals(list, playlist)) {
                    mService.play();
                    return;
                }
            }
            if (position < 0) {
                position = 0;
            }