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
|
@Override
|
||||||
void hide(boolean animationFinished, @AnimationType int animationType) {
|
public void hide() {
|
||||||
super.hide();
|
super.hide();
|
||||||
|
mIsRequestedVisibleAwaitingControl = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
void hide(boolean animationFinished, @AnimationType int animationType) {
|
||||||
|
hide();
|
||||||
|
|
||||||
if (animationFinished) {
|
if (animationFinished) {
|
||||||
// remove IME surface as IME has finished hide animation.
|
// remove IME surface as IME has finished hide animation.
|
||||||
@@ -122,6 +128,9 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
|
|||||||
hide();
|
hide();
|
||||||
removeSurface();
|
removeSurface();
|
||||||
}
|
}
|
||||||
|
if (control != null) {
|
||||||
|
mIsRequestedVisibleAwaitingControl = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user