Merge "Refine excludeInvisibleImeFrames" into tm-qpr-dev am: 973d686da7 am: 3f5a711d0a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19149188

Change-Id: I9774053bb9e5a00e091755977a82c737b71f8eaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tiger Huang
2022-07-07 09:45:05 +00:00
committed by Automerger Merge Worker

View File

@@ -909,6 +909,11 @@ public class InsetsState implements Parcelable {
if (source == null && otherSource == null) {
continue;
}
if (excludeInvisibleImeFrames && i == ITYPE_IME
&& ((source == null && !otherSource.isVisible())
|| (otherSource == null && !source.isVisible()))) {
continue;
}
if (source == null || otherSource == null) {
return false;
}