From 993c5c4ea3a6c4f5dec07cf524915a670e4ade0d Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 12 May 2022 11:06:05 +0200 Subject: [PATCH] Optimization --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index f82643d37c..b17858218c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -1035,8 +1035,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. @Override public void onClick(View view) { Log.i("Manual GC"); - Runtime.getRuntime().runFinalization(); - Runtime.getRuntime().gc(); + Runtime rt = Runtime.getRuntime(); + rt.runFinalization(); + rt.gc(); view.postDelayed(new Runnable() { @Override public void run() {