From 25c7d1d33a81b610b1a3da9c4a7c1f699e1c9090 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 12 Aug 2019 16:11:06 +0200 Subject: [PATCH] Conditionally refresh --- app/src/main/java/eu/faircode/email/ActivityMain.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityMain.java b/app/src/main/java/eu/faircode/email/ActivityMain.java index b658fe9457..8c7c0f374f 100644 --- a/app/src/main/java/eu/faircode/email/ActivityMain.java +++ b/app/src/main/java/eu/faircode/email/ActivityMain.java @@ -85,7 +85,8 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack protected void onExecuted(Bundle args, Boolean hasAccounts) { if (hasAccounts) { Intent view = new Intent(ActivityMain.this, ActivityView.class); - view.putExtra("refresh", true); + if (ACTION_REFRESH.equals(getIntent().getAction())) + view.putExtra("refresh", true); startActivity(view); ServiceSynchronize.watchdog(ActivityMain.this); ServiceSend.watchdog(ActivityMain.this);