Disable recyclerview caching for lowend devices

pull/184/head
M66B 4 years ago
parent a2d30b1888
commit 18649082db

@ -509,6 +509,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}); });
rvMessage.setHasFixedSize(false); rvMessage.setHasFixedSize(false);
int threads = prefs.getInt("query_threads", 4);
if (threads >= 4)
rvMessage.setItemViewCacheSize(10); // Default: 2 rvMessage.setItemViewCacheSize(10); // Default: 2
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5 //rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5

Loading…
Cancel
Save