Merge "Only force layout legacy apps with SOFT_INPUT_ADJUST_RESIZE" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-02-09 17:07:50 +00:00
committed by Android (Google) Code Review

View File

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