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
This commit is contained in:
Jon Miranda
2017-08-09 11:37:59 -07:00
parent 5be7579598
commit 5044c35b07
+1 -1
View File
@@ -365,7 +365,7 @@ public class DeviceProfile {
if (isVerticalBarLayout()) {
hotseatBarSizePx = iconSizePx;
}
hotseatCellHeightPx = iconSizePx + iconDrawablePaddingPx;
hotseatCellHeightPx = iconSizePx;
if (!isVerticalBarLayout()) {
int expectedWorkspaceHeight = availableHeightPx - hotseatBarSizePx