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

Commit 8db99b66 authored by Cosmin Băieș's avatar Cosmin Băieș Committed by Android (Google) Code Review
Browse files

Merge "Start tracking IME user animation requests" into main

parents f816ae6b 91cb84cb
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1351,10 +1351,15 @@ public class InsetsController implements WindowInsetsController, InsetsAnimation
                return interpolator;
            }
        };
        // TODO(b/342111149): Create statsToken here once ImeTracker#onStart becomes async.
        final var statsToken = (types & ime()) == 0
                ? null
                : ImeTracker.forLogging().onStart(ImeTracker.TYPE_USER,
                        ImeTracker.ORIGIN_CLIENT,
                        SoftInputShowHideReason.CONTROL_WINDOW_INSETS_ANIMATION,
                        mHost.isHandlingPointerEvent() /* fromUser */);
        controlAnimationUnchecked(types, cancellationSignal, listener, mFrame, mBounds, spec,
                animationType, getLayoutInsetsDuringAnimationMode(types, fromPredictiveBack),
                false /* useInsetsAnimationThread */, null, fromPredictiveBack);
                false /* useInsetsAnimationThread */, statsToken, fromPredictiveBack);
    }

    private void controlAnimationUnchecked(@InsetsType int types,