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

Commit 650c3fb5 authored by kenzyun_chen's avatar kenzyun_chen Committed by Steve Kondik
Browse files

Initialize mGlobalSystemUiVisibility

ViewRootImpl doesn't pass System UI visibility change to children in ViewRootImpl.handleDispatchSystemUiVisibilityChanged() because there is no change in this case:
Reproduce steps :
1. fullscreen app in portrait (without statusbar and navigation bar)
2. switch to landscape (trigger recreating app in landscape mode)
3. slide down statusbar
Wrong Result : mView.dispatchSystemUiVisibilityChanged(visibility) was not called, so that app can't depend on the callback to refine its layout
This is because mGlobalSystemUiVisibility changed from some value to 0 (SYSTEM_UI_FLAG_VISIBLE)

Change-Id: Icc5a9d23fd8c5c5f37e5c87c4a07af8e9914e2ab
parent b2ad5b18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21714,7 +21714,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        /**
         * Last global system UI visibility reported by the window manager.
         */
        int mGlobalSystemUiVisibility;
        int mGlobalSystemUiVisibility = -1;
        /**
         * True if a view in this hierarchy has an OnSystemUiVisibilityChangeListener