From d014f18d20c4ff5e38377c2ed8b7946246be8f07 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 25 Feb 2020 18:18:23 +0100 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/ActivitySetup.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivitySetup.java b/app/src/main/java/eu/faircode/email/ActivitySetup.java index 4be5091f8d..b5155022ad 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySetup.java +++ b/app/src/main/java/eu/faircode/email/ActivitySetup.java @@ -43,7 +43,6 @@ import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.text.TextUtils; -import android.view.Gravity; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; @@ -1014,7 +1013,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac ToastEx.makeText(ActivitySetup.this, R.string.title_setup_password_invalid, Toast.LENGTH_LONG).show(); else if (ex instanceof IOException && ex.getCause() instanceof IllegalBlockSizeException) ToastEx.makeText(ActivitySetup.this, R.string.title_setup_import_invalid, Toast.LENGTH_LONG).show(); - else if (ex instanceof IllegalArgumentException) + else if (ex instanceof IllegalArgumentException || ex instanceof JSONException) ToastEx.makeText(ActivitySetup.this, ex.getMessage(), Toast.LENGTH_LONG).show(); else Log.unexpectedError(getSupportFragmentManager(), ex);