Use provided home content insets

- They should be correct now immediately after rotation

Bug: 112205777
Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
This commit is contained in:
Winson Chung 2018-08-03 16:31:57 -07:00
parent 9c80147e70
commit ad830cd2dc
1 changed files with 1 additions and 3 deletions

View File

@ -641,10 +641,8 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
overviewStackBounds = new Rect(0, 0, dp.widthPx, dp.heightPx);
}
// If we are not in multi-window mode, home insets should be same as system insets.
Rect insets = new Rect();
WindowManagerWrapper.getInstance().getStableInsets(insets);
dp = dp.copy(mContext);
dp.updateInsets(insets);
dp.updateInsets(homeContentInsets);
}
dp.updateIsSeascape(mContext.getSystemService(WindowManager.class));