Merge "Fix unexpected IME show because of stale requestedVisibleAwaitingControl" into sc-dev

This commit is contained in:
Adrian Roos
2021-03-25 10:37:09 +00:00
committed by Android (Google) Code Review

View File

@@ -64,8 +64,14 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
}
@Override
void hide(boolean animationFinished, @AnimationType int animationType) {
public void hide() {
super.hide();
mIsRequestedVisibleAwaitingControl = false;
}
@Override
void hide(boolean animationFinished, @AnimationType int animationType) {
hide();
if (animationFinished) {
// remove IME surface as IME has finished hide animation.
@@ -122,6 +128,9 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
hide();
removeSurface();
}
if (control != null) {
mIsRequestedVisibleAwaitingControl = false;
}
}
@Override