mirror of https://github.com/M66B/FairEmail.git
Disable recyclerview caching for lowend devices
This commit is contained in:
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…
Reference in New Issue