Revert "Update workspace, cell layout, shortcut and widget, and cell size calculations." am: 3e8a04b341 am: d58c7e5d6b

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18236355

Change-Id: I8a6caf4ef78bb9d6e1399847d53f0a3927d75072
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunny Goyal
2022-05-10 21:24:41 +00:00
committed by Automerger Merge Worker
4 changed files with 29 additions and 323 deletions
@@ -66,9 +66,9 @@ public class OverviewState extends LauncherState {
@Override
public ScaleAndTranslation getWorkspaceScaleAndTranslation(Launcher launcher) {
RecentsView recentsView = launcher.getOverviewPanel();
float workspacePageHeight = launcher.getDeviceProfile().getCellLayoutHeight();
float workspacePageWidth = launcher.getDeviceProfile().getWorkspaceWidth();
recentsView.getTaskSize(sTempRect);
float scale = (float) sTempRect.height() / workspacePageHeight;
float scale = (float) sTempRect.width() / workspacePageWidth;
float parallaxFactor = 0.5f;
return new ScaleAndTranslation(scale, 0, -getDefaultSwipeHeight(launcher) * parallaxFactor);
}