Merge "Removing fading edges from recyclerView as we already have full background behing search box, and additional laying is not requred" into tm-dev am: d3a841d91a

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17982012

Change-Id: I94250c208e5f3a055ade436f537fac4b919620c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunny Goyal
2022-05-05 05:41:12 +00:00
committed by Automerger Merge Worker
2 changed files with 0 additions and 21 deletions
@@ -288,12 +288,6 @@ public class AllAppsRecyclerView extends BaseRecyclerView {
}
}
@Override
protected float getBottomFadingEdgeStrength() {
// No bottom fading edge.
return 0;
}
@Override
protected boolean isPaddingOffsetRequired() {
return true;
@@ -592,13 +592,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;
}
@@ -709,7 +702,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;
@@ -740,7 +732,6 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
FocusedItemDecorator focusedItemDecorator = new FocusedItemDecorator(mRecyclerView);
mRecyclerView.addItemDecoration(focusedItemDecorator);
adapter.setIconFocusListener(focusedItemDecorator.getFocusListener());
applyVerticalFadingEdgeEnabled(mVerticalFadingEdge);
applyPadding();
}
@@ -754,12 +745,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);
}
}
/**