diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-08-09 11:37:59 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-08-09 11:37:59 -0700 |
commit | 5044c35b07f07f9bd0b26f44bc71b7bc8057b37f (patch) | |
tree | 2d676d3c90dca4d7b325d390c58175e25ad125f7 | |
parent | 5be75795986da5229ec07ad8eec6a8cf0f7a19a3 (diff) | |
download | android_packages_apps_Trebuchet-5044c35b07f07f9bd0b26f44bc71b7bc8057b37f.tar.gz android_packages_apps_Trebuchet-5044c35b07f07f9bd0b26f44bc71b7bc8057b37f.tar.bz2 android_packages_apps_Trebuchet-5044c35b07f07f9bd0b26f44bc71b7bc8057b37f.zip |
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
-rw-r--r-- | src/com/android/launcher3/DeviceProfile.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 |