mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Removing fading edges from recyclerView as we already have full
background behing search box, and additional laying is not requred Bug: 221095750 Test: Manual Change-Id: I2251ebae6f09467fb354d9240e3781a7ca076aa9
This commit is contained in:
@@ -597,13 +597,6 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
}
|
||||
}
|
||||
|
||||
/** @see View#setVerticalFadingEdgeEnabled(boolean). */
|
||||
public void setRecyclerViewVerticalFadingEdgeEnabled(boolean enabled) {
|
||||
for (int i = 0; i < mAH.size(); i++) {
|
||||
mAH.get(i).applyVerticalFadingEdgeEnabled(enabled);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isHeaderVisible() {
|
||||
return mHeader != null && mHeader.getVisibility() == View.VISIBLE;
|
||||
}
|
||||
@@ -714,7 +707,6 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
final AlphabeticalAppsList<T> mAppsList;
|
||||
final Rect mPadding = new Rect();
|
||||
AllAppsRecyclerView mRecyclerView;
|
||||
boolean mVerticalFadingEdge;
|
||||
|
||||
AdapterHolder(boolean isWork) {
|
||||
mIsWork = isWork;
|
||||
@@ -745,7 +737,6 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
FocusedItemDecorator focusedItemDecorator = new FocusedItemDecorator(mRecyclerView);
|
||||
mRecyclerView.addItemDecoration(focusedItemDecorator);
|
||||
adapter.setIconFocusListener(focusedItemDecorator.getFocusListener());
|
||||
applyVerticalFadingEdgeEnabled(mVerticalFadingEdge);
|
||||
applyPadding();
|
||||
}
|
||||
|
||||
@@ -759,12 +750,6 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
mPadding.bottom + bottomOffset);
|
||||
}
|
||||
}
|
||||
|
||||
private void applyVerticalFadingEdgeEnabled(boolean enabled) {
|
||||
mVerticalFadingEdge = enabled;
|
||||
mAH.get(AdapterHolder.MAIN).mRecyclerView.setVerticalFadingEdgeEnabled(!mUsingTabs
|
||||
&& mVerticalFadingEdge);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user