From 5044c35b07f07f9bd0b26f44bc71b7bc8057b37f Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Wed, 9 Aug 2017 11:37:59 -0700 Subject: Update hotseat cell height calculation. The hotseat never has text, so we remove the icon drawable padding from the height calculation. This allows the items in the hotseat to be centered vertically properly. Bug: 63996463 Change-Id: Ie0c5706ae6edeafae321ca024c066439d40ca237 --- src/com/android/launcher3/DeviceProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 60c19bc5d..150bc5309 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -365,7 +365,7 @@ public class DeviceProfile { if (isVerticalBarLayout()) { hotseatBarSizePx = iconSizePx; } - hotseatCellHeightPx = iconSizePx + iconDrawablePaddingPx; + hotseatCellHeightPx = iconSizePx; if (!isVerticalBarLayout()) { int expectedWorkspaceHeight = availableHeightPx - hotseatBarSizePx -- cgit v1.2.3