From 414dbfd2f7dbc1e9f5715533eaadc7ecc325f387 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 27 Dec 2021 17:46:58 +0100 Subject: [PATCH] Disable fetch on report --- app/src/main/java/eu/faircode/email/Core.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index d54fa0dbab..70c2d1436b 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -2003,13 +2003,14 @@ class Core { Flags flags = new Flags(keyword); imessage.setFlags(flags, true); - try { - JSONArray fargs = new JSONArray(); - fargs.put(uid); - onFetch(context, fargs, folder, istore, ifolder, state); - } catch (Throwable ex) { - Log.w(ex); - } + if (BuildConfig.DEBUG) + try { + JSONArray fargs = new JSONArray(); + fargs.put(uid); + onFetch(context, fargs, folder, istore, ifolder, state); + } catch (Throwable ex) { + Log.w(ex); + } } }