Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cd0e46a authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Accounting for bottom margin in the search box in app-scroll range am: 0bf251b6

Change-Id: Icd2c57f7de9b46d7d4581bea94faf7d132217094
parents 030387e5 0bf251b6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
<resources>
    <!-- All Apps -->
    <dimen name="all_apps_button_scale_down">8dp</dimen>
    <dimen name="all_apps_search_bar_height">54dp</dimen>
    <dimen name="all_apps_empty_search_message_top_offset">64dp</dimen>
    <dimen name="all_apps_empty_search_bg_top_offset">180dp</dimen>

+2 −1
Original line number Diff line number Diff line
@@ -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);