Merge "Refine the condition about force layout" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-23 07:52:11 +00:00
committed by Android (Google) Code Review

View File

@@ -1677,7 +1677,8 @@ public final class ViewRootImpl implements ViewParent,
// See comment for View.sForceLayoutWhenInsetsChanged
if (View.sForceLayoutWhenInsetsChanged && mView != null
&& mWindowAttributes.softInputMode == SOFT_INPUT_ADJUST_RESIZE) {
&& (mWindowAttributes.softInputMode & SOFT_INPUT_MASK_ADJUST)
== SOFT_INPUT_ADJUST_RESIZE) {
forceLayout(mView);
}