Added breadcrumbs

This commit is contained in:
M66B 2022-12-29 21:29:03 +01:00
parent 6453f11277
commit 3c7cdf639d
1 changed files with 6 additions and 0 deletions

View File

@ -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;