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

Commit 9187337d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix spring loaded scale when taskbar is present" into sc-dev

parents cb6dff62 9053b907
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -59,10 +59,11 @@ public class SpringLoadedState extends LauncherState {

        float scale = grid.workspaceSpringLoadShrinkFactor;
        Rect insets = launcher.getDragLayer().getInsets();
        int insetsBottom = grid.isTaskbarPresent ? grid.taskbarSize : insets.bottom;

        float scaledHeight = scale * ws.getNormalChildHeight();
        float shrunkTop = insets.top + grid.dropTargetBarSizePx;
        float shrunkBottom = ws.getMeasuredHeight() - insets.bottom
        float shrunkBottom = ws.getMeasuredHeight() - insetsBottom
                - grid.workspacePadding.bottom
                - grid.workspaceSpringLoadedBottomSpace;
        float totalShrunkSpace = shrunkBottom - shrunkTop;