mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Fix header padding when search not enabled.
This was specifically affecting taskbar all apps with floating search bar enabled. Header placement should not be changed in that case. Fix: 266440950 Test: Manual in taskbar and other all apps surfaces with and without work profile, floating search flag on and off. Change-Id: I2296a079cc15387a517c61e6b8a21fa0081cba23
This commit is contained in:
@@ -233,7 +233,9 @@ public class ActivityAllAppsContainerView<T extends Context & ActivityContext>
|
||||
super.setupHeader();
|
||||
|
||||
removeCustomRules(mHeader);
|
||||
if (FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get()) {
|
||||
if (!isSearchSupported()) {
|
||||
layoutWithoutSearchContainer(mHeader, false /* includeTabsMargin */);
|
||||
} else if (FeatureFlags.ENABLE_FLOATING_SEARCH_BAR.get()) {
|
||||
alignParentTop(mHeader, false /* includeTabsMargin */);
|
||||
} else {
|
||||
layoutBelowSearchContainer(mHeader, false /* includeTabsMargin */);
|
||||
|
||||
Reference in New Issue
Block a user