Merge "Disable the defulat animation of the RecyclerView to avoid UI jank." into rvc-dev am: 72dac6e5be

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

Change-Id: I5dce4e03bf9cb9d15d4e4504c9b50df86e7b7f48
This commit is contained in:
TreeHugger Robot
2020-06-22 10:43:14 +00:00
committed by Automerger Merge Worker

View File

@@ -109,6 +109,7 @@ public class ContextualCardsFragment extends InstrumentedFragment implements
mCardsContainer.setLayoutManager(mLayoutManager);
mContextualCardsAdapter = new ContextualCardsAdapter(context, this /* lifecycleOwner */,
mContextualCardManager);
mCardsContainer.setItemAnimator(null);
mCardsContainer.setAdapter(mContextualCardsAdapter);
mContextualCardManager.setListener(mContextualCardsAdapter);
mCardsContainer.setListener(this);