mirror of https://github.com/M66B/FairEmail.git
Prevent OOM
This commit is contained in:
parent
c468dfbcff
commit
7834eeced4
|
@ -509,8 +509,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
});
|
||||
|
||||
rvMessage.setHasFixedSize(false);
|
||||
rvMessage.setItemViewCacheSize(20); // Default: 2
|
||||
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10);
|
||||
rvMessage.setItemViewCacheSize(10); // Default: 2
|
||||
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5
|
||||
|
||||
final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
|
||||
private Rect parentRect = new Rect();
|
||||
|
|
Loading…
Reference in New Issue