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

Commit 22954d43 authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

Don't send pause again when coming back from full screen

When we enter full screen, the inline video has been paused.
When we re-play in the inline mode, we don't need to paused the previous video,
which is the full screen one.

bug:4259109
Change-Id: Ib951846e6c22893713b00699263f7d038bcb7353
parent 280dda75
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -184,7 +184,9 @@ class HTML5VideoViewProxy extends Handler
                // we need to pause the old one and re-create a new media player
                // inside the HTML5VideoView.
                if (mHTML5VideoView != null) {
                    if (!backFromFullScreenMode) {
                        mHTML5VideoView.pauseAndDispatch(mCurrentProxy);
                    }
                    // release the media player to avoid finalize error
                    mHTML5VideoView.release();
                }