From a1012904bb137a0a0c258c9066deb0dbfd3fdd09 Mon Sep 17 00:00:00 2001 From: Thales Lima Date: Thu, 13 Jan 2022 17:58:42 +0000 Subject: [PATCH] Make hotseat fit one line on tablets When running on tablets in landscape, the QSB should inline with the hotseat icons. This does that and fixes small bugs that didn't account for the new hotseatBorderSpace. Bug: 210118169 Test: atest Launcher3Tests:DeviceProfileTest Test: visual, using HSV and Window Change-Id: I5a89c5449bf59fde736618151eceaacca443ef67 --- res/values/dimens.xml | 1 + src/com/android/launcher3/DeviceProfile.java | 59 +++++- src/com/android/launcher3/Hotseat.java | 13 +- .../launcher3/ShortcutAndWidgetContainer.java | 8 +- tests/Android.bp | 5 +- .../android/launcher3/DeviceProfileTest.kt | 192 ++++++++++++++++++ 6 files changed, 264 insertions(+), 14 deletions(-) create mode 100644 tests/src/com/android/launcher3/DeviceProfileTest.kt diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 086a2542d1..656ff4dee9 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -33,6 +33,7 @@ 8dp 2dp 0dp + 0dp