diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java
index 3d428b6549..5d86f480a6 100644
--- a/app/src/main/java/eu/faircode/email/FragmentAccount.java
+++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java
@@ -54,6 +54,7 @@ import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
+import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.textfield.TextInputLayout;
import com.sun.mail.imap.IMAPFolder;
import com.sun.mail.imap.IMAPStore;
@@ -804,6 +805,8 @@ public class FragmentAccount extends FragmentEx {
Log.i(Helper.TAG, "Accounts=" + accounts.length);
for (final Account account : accounts)
if (name.equals(account.name)) {
+ final Snackbar snackbar = Snackbar.make(view, R.string.title_authorizing, Snackbar.LENGTH_SHORT);
+ snackbar.show();
am.getAuthToken(
account,
Helper.getAuthTokenType(type),
@@ -823,6 +826,8 @@ public class FragmentAccount extends FragmentEx {
} catch (Throwable ex) {
Log.e(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
Toast.makeText(getContext(), Helper.formatThrowable(ex), Toast.LENGTH_LONG).show();
+ } finally {
+ snackbar.dismiss();
}
}
},
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index dc14e005d6..7fd3521668 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -94,6 +94,7 @@
User name
Password
Select account
+ Authorizing account …
Instructions
Store sent messages (enable if needed only)
Keep-alive interval (minutes)