From 72c15ef913f3b0ee11e523a9b2c523841d8e8c10 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Thu, 18 Mar 2021 18:04:02 -0700 Subject: [PATCH] Fix QSB and Hotseat positions when ENABLE_DEVICE_SEARCH is enabled Test: visual Change-Id: I755de7552e2bb3f927f6be59c07f910ddfbc4650 --- src/com/android/launcher3/Hotseat.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/com/android/launcher3/Hotseat.java b/src/com/android/launcher3/Hotseat.java index 0e9de45e2f..a3e01a98b9 100644 --- a/src/com/android/launcher3/Hotseat.java +++ b/src/com/android/launcher3/Hotseat.java @@ -29,7 +29,6 @@ import android.widget.FrameLayout; import androidx.annotation.Nullable; -import com.android.launcher3.config.FeatureFlags; import com.android.launcher3.util.MultiValueAlpha; import java.util.function.Consumer; @@ -96,7 +95,7 @@ public class Hotseat extends CellLayout implements Insettable { if (hasVerticalHotseat) { setGridSize(1, idp.numHotseatIcons); } else { - setGridSize(idp.numHotseatIcons, FeatureFlags.ENABLE_DEVICE_SEARCH.get() ? 2 : 1); + setGridSize(idp.numHotseatIcons, 1); } showInlineQsb(); } @@ -130,11 +129,7 @@ public class Hotseat extends CellLayout implements Insettable { // When taskbar is present, we set the padding separately to ensure a seamless visual // handoff between taskbar and hotseat during drag and drop. Rect padding = grid.getHotseatLayoutPadding(); - int paddingBottom = padding.bottom; - if (FeatureFlags.ENABLE_DEVICE_SEARCH.get() && !grid.isVerticalBarLayout()) { - paddingBottom -= grid.hotseatBarBottomPaddingPx; - } - setPadding(padding.left, padding.top, padding.right, paddingBottom); + setPadding(padding.left, padding.top, padding.right, padding.bottom); } setLayoutParams(lp);