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

Commit e76f53e9 authored by wilsonshih's avatar wilsonshih Committed by Wei Sheng Shih
Browse files

Exclude windowless starting surfaces from non-predictive-back transition

So the close transition only ready after the app window report drawn.

Flag: EXEMPT bugfix
Bug: 395495048
Bug: 410755593
Test: trigger startBackNavigation without real trigger back event, and
suddenly trigger back gesture, monitor no flicker occur during close
transition.

Change-Id: I09981615e441211950715a9aa00116edc6bae346
parent 6e14ced4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1357,8 +1357,10 @@ class BackNavigationController {
        }

        boolean isStartingSurfaceDrawn(ActivityRecord activity) {
            // Check whether we create windowless surface to prepare open transition
            if (!mComposed || mOpenAnimAdaptor.mPreparedOpenTransition == null) {
            // Check whether a windowless surface is created to prepare for the predictive
            // back transition.
            if (!mComposed || mOpenAnimAdaptor.mPreparedOpenTransition == null
                    || !mOpenAnimAdaptor.mPreparedOpenTransition.isCollecting()) {
                return false;
            }
            if (isTarget(activity, true /* open */)) {