From 8644c75e19f9963bf61d07f025d9efcddcbaa3d7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 29 Aug 2020 20:06:04 +0200 Subject: [PATCH] Reduce memory pressure --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 32b088a5be..67e8b5f368 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -509,7 +509,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. }); rvMessage.setHasFixedSize(false); - rvMessage.setItemViewCacheSize(100); // Default: 2 + rvMessage.setItemViewCacheSize(20); // Default: 2 //rvMessage.getRecycledViewPool().setMaxRecycledViews(0, 10); final LinearLayoutManager llm = new LinearLayoutManager(getContext()) {