Updating the UI of the options popup to make it look similar to icon popup

Bug: 77327164
Change-Id: I3580df8bf8a43cb44123f203ffed9a85fa33aea7
This commit is contained in:
Sunny Goyal
2018-03-30 17:10:13 -07:00
parent 415a1402d5
commit 2fd7a8bc59
11 changed files with 638 additions and 737 deletions

View File

@@ -349,6 +349,11 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
}
}
public float getWallpaperOffsetForCenterPage() {
int pageScroll = getScrollForPage(getPageNearestToCenterOfScreen());
return mWallpaperOffset.wallpaperOffsetForScroll(pageScroll);
}
public Rect estimateItemPosition(CellLayout cl, int hCell, int vCell, int hSpan, int vSpan) {
Rect r = new Rect();
cl.cellToRect(hCell, vCell, hSpan, vSpan, r);