Merge "Fix unexpected hide IME cases" into sc-v2-dev am: 52c1467044 am: 303e2eaa17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16171117 Change-Id: Iba85ab546d789de1fad9eb9b3df0587d2b4b2736
This commit is contained in:
@@ -124,7 +124,7 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
|
||||
public void setControl(@Nullable InsetsSourceControl control, int[] showTypes,
|
||||
int[] hideTypes) {
|
||||
super.setControl(control, showTypes, hideTypes);
|
||||
if (control == null && !mIsRequestedVisibleAwaitingControl) {
|
||||
if (control == null && !isRequestedVisibleAwaitingControl()) {
|
||||
hide();
|
||||
removeSurface();
|
||||
}
|
||||
|
||||
@@ -284,8 +284,8 @@ public class InsetsAnimationControlImpl implements InternalInsetsAnimationContro
|
||||
mShownOnFinish, mCurrentAlpha, mCurrentInsets));
|
||||
mController.notifyFinished(this, mShownOnFinish);
|
||||
releaseLeashes();
|
||||
if (DEBUG) Log.d(TAG, "Animation finished abruptly.");
|
||||
}
|
||||
if (DEBUG) Log.d(TAG, "Animation finished abruptly.");
|
||||
return mFinished;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user