Prevent OOM

This commit is contained in:
M66B 2020-08-29 21:10:51 +02:00
parent c468dfbcff
commit 7834eeced4
1 changed files with 2 additions and 2 deletions

View File

@ -509,8 +509,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
}); });
rvMessage.setHasFixedSize(false); rvMessage.setHasFixedSize(false);
rvMessage.setItemViewCacheSize(20); // Default: 2 rvMessage.setItemViewCacheSize(10); // Default: 2
//rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); //rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); // Default 5
final LinearLayoutManager llm = new LinearLayoutManager(getContext()) { final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {
private Rect parentRect = new Rect(); private Rect parentRect = new Rect();