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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4376481068d84c5de2a2708b6004ac8246384e7f
This commit is contained in:
TreeHugger Robot
2021-02-09 17:17:24 +00:00
committed by Automerger Merge Worker

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