mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Adding support for top padding in BaseRecyclerView. The scrollbar is
drawn below the top padding. Also adding callback for getting the all-apps vertical pull range so that it can be controlled by SearchUiManager Bug: 37616877 Change-Id: Ib4642073f3e92f6676caede3bddd652fda89c86f
This commit is contained in:
@@ -245,6 +245,10 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
|
||||
}
|
||||
}
|
||||
|
||||
public SearchUiManager getSearchUiManager() {
|
||||
return mSearchUiManager;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getTouchDelegateTargetView() {
|
||||
return mAppsRecyclerView;
|
||||
@@ -366,6 +370,10 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
|
||||
@Override
|
||||
public void setInsets(Rect insets) {
|
||||
DeviceProfile grid = mLauncher.getDeviceProfile();
|
||||
mAppsRecyclerView.setPadding(
|
||||
mAppsRecyclerView.getPaddingLeft(), mAppsRecyclerView.getPaddingTop(),
|
||||
mAppsRecyclerView.getPaddingRight(), insets.bottom);
|
||||
|
||||
if (grid.isVerticalBarLayout()) {
|
||||
ViewGroup.MarginLayoutParams mlp = (MarginLayoutParams) getLayoutParams();
|
||||
mlp.leftMargin = insets.left;
|
||||
|
||||
Reference in New Issue
Block a user