Merge "Disable the defulat animation of the RecyclerView to avoid UI jank." into rvc-dev am: 72dac6e5be
am: a456072536
am: 733d80a575
am: b81bb4780a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11949294 Change-Id: Ibc93fc0534a5d8cf2cb2a901703a0427e0d96fb8
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user