Merge "Fix unexpected IME show because of stale requestedVisibleAwaitingControl" into sc-dev
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user