From 70d820b8ce1f74aad036b2c9728ebf92ab37cd50 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 8 Aug 2024 07:33:39 +0200 Subject: [PATCH] Added debug logging --- app/src/main/java/eu/faircode/email/ActivityCompose.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ActivityCompose.java b/app/src/main/java/eu/faircode/email/ActivityCompose.java index 9a0eb65a58..4bee0d8f8b 100644 --- a/app/src/main/java/eu/faircode/email/ActivityCompose.java +++ b/app/src/main/java/eu/faircode/email/ActivityCompose.java @@ -82,6 +82,8 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB String[] tos = intent.getStringArrayExtra(Intent.EXTRA_EMAIL); boolean cloud = (tos != null && tos.length == 1 && BuildConfig.CLOUD_EMAIL.equals(tos[0])); + Log.i("Compose exit shared=" + shared + " widget=" + widget + " cloud=" + cloud); + if (cloud) { Intent setup = new Intent(this, ActivitySetup.class) .setAction("misc") @@ -90,6 +92,8 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB startActivity(setup); } else if (!shared && !widget) { Intent parent = getParentActivityIntent(); + Log.i("Compose exit parent=" + parent + + " recreate=" + (parent == null ? null : shouldUpRecreateTask(parent))); if (parent != null) if (shouldUpRecreateTask(parent)) TaskStackBuilder.create(this)