From 02f3d725b28ca0726b14b60c4bbf62cd00419ca4 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 9 Jul 2024 10:32:51 +0200 Subject: [PATCH] It is okay --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 724ef7cb1c..69899775e6 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -5965,14 +5965,15 @@ public class FragmentMessages extends FragmentBase int resid = (checked ? R.string.title_check_outlook_oauth : R.string.title_check_outlook_password); final Snackbar snackbar = Helper.setSnackbarOptions(Snackbar.make(view, resid, Snackbar.LENGTH_INDEFINITE)); Helper.setSnackbarLines(snackbar, 5); - snackbar.setAction(R.string.title_info, new View.OnClickListener() { + snackbar.setAction(checked ? android.R.string.ok : R.string.title_info, new View.OnClickListener() { @Override public void onClick(View v) { snackbar.dismiss(); prefs.edit().putBoolean("outlook_checked", true).apply(); - if (!checked) + if (!checked) { prefs.edit().putLong("outlook_last_checked", now).apply(); - Helper.viewFAQ(v.getContext(), 14); + Helper.viewFAQ(v.getContext(), 14); + } } }); snackbar.addCallback(new Snackbar.Callback() {