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

Commit c3ca71dd authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

VideoView2: Throw ISE when MediaSession is not available

Test: build
Change-Id: I33cd6555a568147ee2643dfd81c134ac90d1b2e1
parent 5f07c65a
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;
    }