From b2ba38d4e1296e368f7b82315c99b450baefe417 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Sep 2019 10:32:36 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/FragmentGmail.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentGmail.java b/app/src/main/java/eu/faircode/email/FragmentGmail.java index 612d7c841e..9f207454db 100644 --- a/app/src/main/java/eu/faircode/email/FragmentGmail.java +++ b/app/src/main/java/eu/faircode/email/FragmentGmail.java @@ -24,7 +24,6 @@ import android.accounts.Account; import android.accounts.AccountManager; import android.accounts.AccountManagerCallback; import android.accounts.AccountManagerFuture; -import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; @@ -53,6 +52,7 @@ import java.util.Date; import java.util.List; import static android.accounts.AccountManager.newChooseAccountIntent; +import static android.app.Activity.RESULT_OK; public class FragmentGmail extends FragmentBase { private ViewGroup view; @@ -173,7 +173,7 @@ public class FragmentGmail extends FragmentBase { switch (requestCode) { case ActivitySetup.REQUEST_CHOOSE_ACCOUNT: - if (resultCode == Activity.RESULT_OK && data != null) + if (resultCode == RESULT_OK && data != null) onAccountSelected(data); break; case ActivitySetup.REQUEST_DONE: