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

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

Merge changes from topic "am-0556e1f2-627d-498d-82e4-c0923cbd7751" into ub-launcher3-master

* changes:
  [automerger] Fixing taskView not centered properly in available width am: d62e14e5
  Fixing taskView not centered properly in available width
parents 93e8feb3 d10ec344
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ public class LayoutUtils {
        float outHeight = scale * taskHeight;

        // Center in the visible space
        float x = insets.left + (taskWidth - outWidth) / 2;
        float x = insets.left + (launcherVisibleWidth - outWidth) / 2;
        float y = insets.top + Math.max(topIconMargin,
                (launcherVisibleHeight - extraVerticalSpace - outHeight) / 2);
        outRect.set(Math.round(x), Math.round(y),