mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Use provided home content insets
- They should be correct now immediately after rotation Bug: 112205777 Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user