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

Commit fd189146 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix flicker with "trampoline" activities

WC.mSurfaceControl starts hidden, but gets immediately shown
in onParentSet. Reflect that in mLastSurfaceShowing in
AppWindowToken such that it gets hidden immediately again while
preparing the first frame.

Test: Go to settings -> Add account, observe no flicker in the
status bar
Test: go/wm-smoke

Change-Id: I6493e75fcac31784662ebcb0e24a4e5c698ed337
parent 303f84fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
    private int mTransitFlags;

    /** Whether our surface was set to be showing in the last call to {@link #prepareSurfaces} */
    private boolean mLastSurfaceShowing;
    private boolean mLastSurfaceShowing = true;

    private AppWindowThumbnail mThumbnail;