Merge "Fix unexpected hide IME cases" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
52c1467044
@@ -124,7 +124,7 @@ public final class ImeInsetsSourceConsumer extends InsetsSourceConsumer {
|
|||||||
public void setControl(@Nullable InsetsSourceControl control, int[] showTypes,
|
public void setControl(@Nullable InsetsSourceControl control, int[] showTypes,
|
||||||
int[] hideTypes) {
|
int[] hideTypes) {
|
||||||
super.setControl(control, showTypes, hideTypes);
|
super.setControl(control, showTypes, hideTypes);
|
||||||
if (control == null && !mIsRequestedVisibleAwaitingControl) {
|
if (control == null && !isRequestedVisibleAwaitingControl()) {
|
||||||
hide();
|
hide();
|
||||||
removeSurface();
|
removeSurface();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -284,8 +284,8 @@ public class InsetsAnimationControlImpl implements InternalInsetsAnimationContro
|
|||||||
mShownOnFinish, mCurrentAlpha, mCurrentInsets));
|
mShownOnFinish, mCurrentAlpha, mCurrentInsets));
|
||||||
mController.notifyFinished(this, mShownOnFinish);
|
mController.notifyFinished(this, mShownOnFinish);
|
||||||
releaseLeashes();
|
releaseLeashes();
|
||||||
|
if (DEBUG) Log.d(TAG, "Animation finished abruptly.");
|
||||||
}
|
}
|
||||||
if (DEBUG) Log.d(TAG, "Animation finished abruptly.");
|
|
||||||
return mFinished;
|
return mFinished;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user