Merge "Only force layout legacy apps with SOFT_INPUT_ADJUST_RESIZE" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d938189165
@@ -1675,7 +1675,8 @@ public final class ViewRootImpl implements ViewParent,
|
|||||||
requestLayout();
|
requestLayout();
|
||||||
|
|
||||||
// See comment for View.sForceLayoutWhenInsetsChanged
|
// See comment for View.sForceLayoutWhenInsetsChanged
|
||||||
if (View.sForceLayoutWhenInsetsChanged && mView != null) {
|
if (View.sForceLayoutWhenInsetsChanged && mView != null
|
||||||
|
&& mWindowAttributes.softInputMode == SOFT_INPUT_ADJUST_RESIZE) {
|
||||||
forceLayout(mView);
|
forceLayout(mView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user