Fixing rounding error when computing bottom clip

am: 73769f0a88

Change-Id: I82abca6f18a9fddbf16f0405e14f72fdd52ef79f
This commit is contained in:
Winson Chung
2019-06-20 15:28:34 -07:00
committed by android-build-merger

View File

@@ -110,7 +110,7 @@ public class LayoutUtils {
float y = insets.top + Math.max(topIconMargin,
(launcherVisibleHeight - extraVerticalSpace - outHeight) / 2);
outRect.set(Math.round(x), Math.round(y),
Math.round(x + outWidth), Math.round(y + outHeight));
Math.round(x) + Math.round(outWidth), Math.round(y) + Math.round(outHeight));
}
public static int getShelfTrackingDistance(Context context, DeviceProfile dp) {