[automerger] Fixing taskView not centered properly in available width am: d62e14e539

Change-Id: I24fe5c927bf6990ac8b7ec53065d1938350c605c
This commit is contained in:
Android Build Merger (Role)
2018-05-16 22:46:28 +00:00
@@ -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),