Merge "Accounting for bottom margin in the search box in app-scroll range" into ub-launcher3-dorval-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
b49ff69b91
@@ -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