1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Fixed initial changelog

This commit is contained in:
M66B 2024-12-15 08:14:21 +01:00
parent 04bb4695e1
commit 6d6e027a92

View file

@ -1614,8 +1614,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
String last = prefs.getString("changelog", null); String last = prefs.getString("changelog", null);
if (last != null && !last.equals(version)) { if (last != null && !last.equals(version)) {
prefs.edit().putString("changelog", version).apply();
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putString("name", "CHANGELOG.md"); args.putString("name", "CHANGELOG.md");
args.putString("option", "show_changelog"); args.putString("option", "show_changelog");
@ -1623,6 +1621,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
fragment.setArguments(args); fragment.setArguments(args);
fragment.show(getSupportFragmentManager(), "changelog"); fragment.show(getSupportFragmentManager(), "changelog");
} }
if (!version.equals(last))
prefs.edit().putString("changelog", version).apply();
} }
} }