Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad830cd2 authored by Winson Chung's avatar Winson Chung
Browse files

Use provided home content insets

- They should be correct now immediately after rotation

Bug: 112205777
Change-Id: I12c5b791b7115408bb34b5d0ae1e3023ce79c1bf
parent 9c80147e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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));