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

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

Merge "VideoView2: Throw ISE when MediaSession is not available"

parents dffb0879 c3ca71dd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -182,6 +182,9 @@ public class VideoView2Impl implements VideoView2Provider, VideoViewInterface.Su

    @Override
    public MediaController getMediaController_impl() {
        if (mMediaSession == null) {
            throw new IllegalStateException("MediaSession instance is not available.");
        }
        return mMediaController;
    }