Skip to content
Snippets Groups Projects
Commit 7d0f3c90 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Let token animation notify removing starting window" into main

parents 324f4da1 63410892
No related branches found
No related tags found
No related merge requests found
......@@ -181,8 +181,10 @@ final class ImeInsetsSourceProvider extends InsetsSourceProvider {
}
WindowToken imeToken = mWindowContainer.asWindowState() != null
? mWindowContainer.asWindowState().mToken : null;
if (mDisplayContent.getAsyncRotationController() != null
&& mDisplayContent.getAsyncRotationController().isTargetToken(imeToken)) {
final var rotationController = mDisplayContent.getAsyncRotationController();
if ((rotationController != null && rotationController.isTargetToken(imeToken))
|| (imeToken != null && imeToken.isSelfAnimating(
0 /* flags */, SurfaceAnimator.ANIMATION_TYPE_TOKEN_TRANSFORM))) {
// Skip reporting IME drawn state when the control target is in fixed
// rotation, AsyncRotationController will report after the animation finished.
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment