mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Simplifying all-apps search box
> Giving the search box a solid background so that it work fine with scrolling > bottom shadow logic for search box Bug: 73085356 Change-Id: Ie4dc4922be39ffd8e2d562becedbd4c6f820e6c9
This commit is contained in:
@@ -204,7 +204,7 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
|
||||
mHeader.reset();
|
||||
}
|
||||
// Reset the search bar and base recycler view after transitioning home
|
||||
mSearchUiManager.reset();
|
||||
mSearchUiManager.resetSearch();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -291,11 +291,10 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
|
||||
ViewGroup.MarginLayoutParams mlp = (MarginLayoutParams) getLayoutParams();
|
||||
if (grid.isVerticalBarLayout()) {
|
||||
mlp.leftMargin = insets.left;
|
||||
mlp.topMargin = insets.top;
|
||||
mlp.rightMargin = insets.right;
|
||||
setPadding(grid.workspacePadding.left, 0, grid.workspacePadding.right, 0);
|
||||
} else {
|
||||
mlp.leftMargin = mlp.rightMargin = mlp.topMargin = 0;
|
||||
mlp.leftMargin = mlp.rightMargin = 0;
|
||||
setPadding(0, 0, 0, 0);
|
||||
}
|
||||
setLayoutParams(mlp);
|
||||
|
||||
Reference in New Issue
Block a user