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

Commit a14cdcaa authored by Tiger's avatar Tiger Committed by Tiger Huang
Browse files

De-flake testImeAnimationCallbacksShowAndHide

This CL defers setting requested visible types if IME is not ready
regardless of the control. The requested visible types will be set when
fromIme is true.

Fix: 284172248
Bug: 283342812
Test: WindowInsetsAnimationImeTests#testImeAnimationCallbacksShowAndHide
Change-Id: Id7d96f063f96f6e3783aa450b694d1a13bd98471
parent 878b61b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1374,7 +1374,7 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation

            // The requested visibilities should be delayed as well. Otherwise, we might override
            // the insets visibility before playing animation.
            setRequestedVisibleTypes(mReportedRequestedVisibleTypes, typesReady);
            setRequestedVisibleTypes(mReportedRequestedVisibleTypes, types);

            Trace.asyncTraceEnd(TRACE_TAG_VIEW, "IC.showRequestFromApi", 0);
            if (!fromIme) {