mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Accounting for bottom margin in the search box in app-scroll range
Bug: 2539098 Change-Id: I9d7cdb05d33af397a4adcfc2f1f6c1d380b9fb0e
This commit is contained in:
@@ -202,7 +202,8 @@ public class AppsSearchContainerLayout extends FrameLayout
|
||||
if (!dp.isVerticalBarLayout()) {
|
||||
Rect insets = mLauncher.getDragLayer().getInsets();
|
||||
int hotseatBottom = bottom - dp.hotseatBarBottomPaddingPx - insets.bottom;
|
||||
int searchTopMargin = insets.top + (mMinHeight - mSearchBoxHeight);
|
||||
int searchTopMargin = insets.top + (mMinHeight - mSearchBoxHeight)
|
||||
+ ((MarginLayoutParams) getLayoutParams()).bottomMargin;
|
||||
listener.onScrollRangeChanged(hotseatBottom - searchTopMargin);
|
||||
} else {
|
||||
listener.onScrollRangeChanged(bottom);
|
||||
|
||||
Reference in New Issue
Block a user