1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-21 23:32:51 +00:00

Simplification

This commit is contained in:
M66B 2024-12-18 17:05:02 +01:00
parent 1b779b08e1
commit 7d1a504979

View file

@ -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();
}
}
}