From 6d6e027a92ea29c4a4dbda7fcca81e89bf44cab5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 15 Dec 2024 08:14:21 +0100 Subject: [PATCH] Fixed initial changelog --- app/src/main/java/eu/faircode/email/ActivityView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 9fc7edd394..1c00760b05 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -1614,8 +1614,6 @@ else if (show_changelog) { String last = prefs.getString("changelog", null); if (last != null && !last.equals(version)) { - prefs.edit().putString("changelog", version).apply(); - Bundle args = new Bundle(); args.putString("name", "CHANGELOG.md"); args.putString("option", "show_changelog"); @@ -1623,6 +1621,8 @@ else if (show_changelog) { fragment.setArguments(args); fragment.show(getSupportFragmentManager(), "changelog"); } + if (!version.equals(last)) + prefs.edit().putString("changelog", version).apply(); } }