Merge "Refine excludeInvisibleImeFrames" into tm-qpr-dev

This commit is contained in:
Tiger Huang
2022-07-07 09:31:05 +00:00
committed by Android (Google) Code Review

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;
}