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

Commit 9f547a8c authored by Shimeng (Simon) Wang's avatar Shimeng (Simon) Wang
Browse files

DO NOT MERGE

Avoid sending false orientation event to webkit.

issue: 3101311
Change-Id: I819f046a119ad108256d6cece3f2e6ec1d643145
parent 04358138
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ class BrowserFrame extends Handler {
    // that if the UI thread posts any messages after the message
    // queue has been cleared,they are ignored.
    private boolean mBlockMessages = false;
    private int mOrientation = -1;

    // Is this frame the main frame?
    private boolean mIsMainFrame;
@@ -473,7 +474,10 @@ class BrowserFrame extends Handler {
            }

            case ORIENTATION_CHANGED: {
                if (mOrientation != msg.arg1) {
                    mOrientation = msg.arg1;
                    nativeOrientationChanged(msg.arg1);
                }
                break;
            }