Use provided home content insets
- They should be correct now immediately after rotation Bug: 112205777 Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
This commit is contained in:
parent
9c80147e70
commit
ad830cd2dc
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue