From 3c7cdf639deea1b01646393c7b7b131aed78a44e Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 29 Dec 2022 21:29:03 +0100 Subject: [PATCH] Added breadcrumbs --- app/src/main/java/eu/faircode/email/FragmentOAuth.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index 93cc39b939..81a2141c4c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -342,6 +342,8 @@ public class FragmentOAuth extends FragmentBase { pbOAuth.setVisibility(View.VISIBLE); hideError(); + Log.breadcrumb("onAuthorize", "id", id); + final Context context = getContext(); PackageManager pm = context.getPackageManager(); EmailProvider provider = EmailProvider.getProvider(context, id); @@ -493,6 +495,8 @@ public class FragmentOAuth extends FragmentBase { cbRecent.setEnabled(true); cbUpdate.setEnabled(true); + Log.breadcrumb("onHandleOAuth", "id", id); + AuthorizationResponse auth = AuthorizationResponse.fromIntent(data); if (auth == null) { AuthorizationException ex = AuthorizationException.fromIntent(data); @@ -570,6 +574,8 @@ public class FragmentOAuth extends FragmentBase { } private void onOAuthorized(String accessToken, String idToken, AuthState state) { + Log.breadcrumb("onOAuthorized", "id", id); + if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) return;