1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Small improvement

This commit is contained in:
M66B 2024-04-28 15:35:28 +02:00
parent a18199e420
commit 957276c1d4

View file

@ -1525,6 +1525,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
String last = prefs.getString("changelog", null); String last = prefs.getString("changelog", null);
if (!Objects.equals(version, last) || BuildConfig.DEBUG) { if (!Objects.equals(version, last) || BuildConfig.DEBUG) {
prefs.edit().putString("changelog", version).apply();
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putString("name", "CHANGELOG.md"); args.putString("name", "CHANGELOG.md");
FragmentDialogMarkdown fragment = new FragmentDialogMarkdown(); FragmentDialogMarkdown fragment = new FragmentDialogMarkdown();
@ -1532,8 +1534,6 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
fragment.show(getSupportFragmentManager(), "changelog"); fragment.show(getSupportFragmentManager(), "changelog");
} }
} }
prefs.edit().putString("changelog", version).apply();
} }
private void checkBanner() { private void checkBanner() {