Added breadcrumbs

pull/210/head
M66B 2 years ago
parent 6453f11277
commit 3c7cdf639d

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

Loading…
Cancel
Save