mirror of https://github.com/M66B/FairEmail.git
Disable recyclerview caching for lowend devices
This commit is contained in:
parent
a2d30b1888
commit
18649082db
|
@ -509,7 +509,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
});
|
});
|
||||||
|
|
||||||
rvMessage.setHasFixedSize(false);
|
rvMessage.setHasFixedSize(false);
|
||||||
rvMessage.setItemViewCacheSize(10); // Default: 2
|
|
||||||
|
int threads = prefs.getInt("query_threads", 4);
|
||||||
|
if (threads >= 4)
|
||||||
|
rvMessage.setItemViewCacheSize(10); // Default: 2
|
||||||
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5
|
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5
|
||||||
|
|
||||||
final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
|
final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
|
||||||
|
|
Loading…
Reference in New Issue