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

Commit 2b435884 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MediaPlayer2: implement skipToNext"

parents c7c2085f 27fa6f00
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -271,7 +271,10 @@ public final class MediaPlayer2Impl extends MediaPlayer2 {
        addTask(new Task(CALL_COMPLETED_SKIP_TO_NEXT, false) {
            @Override
            void process() {
                // TODO: switch to next data source and play
                if (getState() == PLAYER_STATE_PLAYING) {
                    pause();
                }
                playNextDataSource();
            }
        });
    }