Remove animator on app list.

The animator causes a lot of jank. Removing it makes the UI feel faster
in general.

Fixes: 74127318
Test: visual
Change-Id: I79cbe8220fb05af84a394207dac2c8c9a93288be
This commit is contained in:
Fan Zhang
2019-05-03 15:36:02 -07:00
parent 094c238ba1
commit 0d69f08337

View File

@@ -373,6 +373,7 @@ public class ManageApplications extends InstrumentedFragment
UserHandle.of(userId))); UserHandle.of(userId)));
} }
mRecyclerView = mListContainer.findViewById(R.id.apps_list); mRecyclerView = mListContainer.findViewById(R.id.apps_list);
mRecyclerView.setItemAnimator(null);
mRecyclerView.setLayoutManager(new LinearLayoutManager( mRecyclerView.setLayoutManager(new LinearLayoutManager(
getContext(), RecyclerView.VERTICAL, false /* reverseLayout */)); getContext(), RecyclerView.VERTICAL, false /* reverseLayout */));
mRecyclerView.setAdapter(mApplications); mRecyclerView.setAdapter(mApplications);