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: I242e99fed086552dd9492c9ad8a294b72e166212
This commit is contained in:
@@ -109,6 +109,7 @@ public class ContextualCardsFragment extends InstrumentedFragment implements
|
|||||||
mCardsContainer.setLayoutManager(mLayoutManager);
|
mCardsContainer.setLayoutManager(mLayoutManager);
|
||||||
mContextualCardsAdapter = new ContextualCardsAdapter(context, this /* lifecycleOwner */,
|
mContextualCardsAdapter = new ContextualCardsAdapter(context, this /* lifecycleOwner */,
|
||||||
mContextualCardManager);
|
mContextualCardManager);
|
||||||
|
mCardsContainer.setItemAnimator(null);
|
||||||
mCardsContainer.setAdapter(mContextualCardsAdapter);
|
mCardsContainer.setAdapter(mContextualCardsAdapter);
|
||||||
mContextualCardManager.setListener(mContextualCardsAdapter);
|
mContextualCardManager.setListener(mContextualCardsAdapter);
|
||||||
mCardsContainer.setListener(this);
|
mCardsContainer.setListener(this);
|
||||||
|
Reference in New Issue
Block a user