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

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

Change-Id: I6e0dfcff1fbe9d12278d43a6d52803e14d2cb67d
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:35:54 +00:00
committed by Automerger Merge Worker

View File

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