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

Commit d49ea7f1 authored by Teng-Hui Zhu's avatar Teng-Hui Zhu Committed by Android (Google) Code Review
Browse files

Merge "Don't allow enter full screen while still in full screen mode."

parents 5f3b32c9 2b64c5a6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -146,6 +146,12 @@ class HTML5VideoViewProxy extends Handler
                // Save the inline video info and inherit it in the full screen
                int savePosition = 0;
                if (mHTML5VideoView != null) {
                    // We don't allow enter full screen mode while the previous
                    // full screen video hasn't finished yet.
                    if (!mHTML5VideoView.fullScreenExited() && mHTML5VideoView.isFullScreenMode()) {
                        Log.w(LOGTAG, "Try to reenter the full screen mode");
                        return;
                    }
                    // If we are playing the same video, then it is better to
                    // save the current position.
                    if (layerId == mHTML5VideoView.getVideoLayerId()) {