From 374336a571518b120a38ce062828db8caac52e4c Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Fri, 23 Jul 2021 11:40:51 -0700 Subject: [PATCH] Update hotseat sizing for 4x5 grids. If the qsb bottom margin is smaller than the bottom insets, we'll fall back to centering the qsb in the available freespace. Bug: 194435265 Test: 4x5 grid multiple devices, with: gesture nav enabled 3 button nav enabled Change-Id: I9fd4f0da3f2bc9f0b38a621ad1192533260379e3 --- res/xml/size_limits_80x104.xml | 8 ++++---- src/com/android/launcher3/DeviceProfile.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/res/xml/size_limits_80x104.xml b/res/xml/size_limits_80x104.xml index 93d43fbc89..41786644fb 100644 --- a/res/xml/size_limits_80x104.xml +++ b/res/xml/size_limits_80x104.xml @@ -80,10 +80,10 @@ launcher:b="16dp"/> + launcher:c="72dp"/> + launcher:b="56dp"/> + launcher:c="95dp"/> + launcher:b="56dp"/> mInsets.bottom) { return Math.min(qsbBottomMarginPx, freeSpace); } else { return (int) (freeSpace * QSB_CENTER_FACTOR) - + (isTaskbarPresent ? taskbarSize : getInsets().bottom); + + (isTaskbarPresent ? taskbarSize : mInsets.bottom); } }