From 7d1a504979cd24c1bcad30d8ac627de30f23d7c3 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 18 Dec 2024 17:05:02 +0100 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/ActivityView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 1c00760b05..b5c1394587 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -1613,16 +1613,16 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB return; String last = prefs.getString("changelog", null); - if (last != null && !last.equals(version)) { + if (!version.equals(last)) { Bundle args = new Bundle(); args.putString("name", "CHANGELOG.md"); args.putString("option", "show_changelog"); FragmentDialogMarkdown fragment = new FragmentDialogMarkdown(); fragment.setArguments(args); fragment.show(getSupportFragmentManager(), "changelog"); - } - if (!version.equals(last)) + prefs.edit().putString("changelog", version).apply(); + } } }