Loading src/com/android/launcher3/DeviceProfile.java +17 −3 Original line number Diff line number Diff line Loading @@ -1481,11 +1481,25 @@ public class DeviceProfile { * Returns the number of pixels the hotseat is translated from the bottom of the screen. */ private int getHotseatBarBottomPadding() { int heightDifference = Math.abs(hotseatCellHeightPx - iconSizePx); boolean isFullyGesture = mInfo.navigationMode == NavigationMode.NO_BUTTON; if (isTaskbarPresent) { // QSB on top or inline if (isTablet) return hotseatBarBottomSpacePx / 2; return hotseatBarBottomSpacePx - (Math.abs(hotseatCellHeightPx - iconSizePx) / 2); if (isFullyGesture) { if (isLandscape) { return 0; } else { return heightDifference / 2; } } else { if (isLandscape) { return hotseatBarBottomSpacePx - (heightDifference / 2); } else { return heightDifference; } } } else { return hotseatBarSizePx - hotseatCellHeightPx; return hotseatBarBottomSpacePx + ((isFullyGesture ? 1 : 2) * heightDifference); } } Loading Loading
src/com/android/launcher3/DeviceProfile.java +17 −3 Original line number Diff line number Diff line Loading @@ -1481,11 +1481,25 @@ public class DeviceProfile { * Returns the number of pixels the hotseat is translated from the bottom of the screen. */ private int getHotseatBarBottomPadding() { int heightDifference = Math.abs(hotseatCellHeightPx - iconSizePx); boolean isFullyGesture = mInfo.navigationMode == NavigationMode.NO_BUTTON; if (isTaskbarPresent) { // QSB on top or inline if (isTablet) return hotseatBarBottomSpacePx / 2; return hotseatBarBottomSpacePx - (Math.abs(hotseatCellHeightPx - iconSizePx) / 2); if (isFullyGesture) { if (isLandscape) { return 0; } else { return heightDifference / 2; } } else { if (isLandscape) { return hotseatBarBottomSpacePx - (heightDifference / 2); } else { return heightDifference; } } } else { return hotseatBarSizePx - hotseatCellHeightPx; return hotseatBarBottomSpacePx + ((isFullyGesture ? 1 : 2) * heightDifference); } } Loading