Merge "WindowInsetsAnimation: Fix app driven closing of IME" into rvc-dev am: 56f4b1b9d3
Change-Id: I42dc07978134b80aea85ae5bb7de24474f5c3b96
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package android.view;
|
package android.view;
|
||||||
|
|
||||||
import static android.view.InsetsController.ANIMATION_TYPE_USER;
|
|
||||||
import static android.view.InsetsController.AnimationType;
|
import static android.view.InsetsController.AnimationType;
|
||||||
import static android.view.InsetsState.ITYPE_IME;
|
import static android.view.InsetsState.ITYPE_IME;
|
||||||
|
|
||||||
@@ -104,13 +103,9 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
|
|||||||
void hide(boolean animationFinished, @AnimationType int animationType) {
|
void hide(boolean animationFinished, @AnimationType int animationType) {
|
||||||
super.hide();
|
super.hide();
|
||||||
|
|
||||||
if (!animationFinished) {
|
if (animationFinished) {
|
||||||
if (animationType == ANIMATION_TYPE_USER) {
|
|
||||||
// if controlWindowInsetsAnimation is hiding keyboard.
|
|
||||||
notifyHidden();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// remove IME surface as IME has finished hide animation.
|
// remove IME surface as IME has finished hide animation.
|
||||||
|
notifyHidden();
|
||||||
removeSurface();
|
removeSurface();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user