Fixing insets mapping in 3-button and 2-button mode

Bug: 131360075
Change-Id: If6e3a4fbb011fc313efeb91686a9d787761862c5
This commit is contained in:
Sunny Goyal
2019-05-02 13:39:16 -07:00
parent 952fdb3e70
commit 7a39b1bc5f
8 changed files with 117 additions and 50 deletions

View File

@@ -302,7 +302,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
rotationMode.mapRect(padding, mTempRect);
setPadding(mTempRect.left, mTempRect.top, mTempRect.right, mTempRect.bottom);
rotationMode.mapRect(insets, mInsets);
rotationMode.mapRect(stableGrid.getInsets(), mInsets);
if (mWorkspaceFadeInAdjacentScreens) {
// In landscape mode the page spacing is set to the default.