Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Dec 18, 2024
1 parent 1b779b0 commit 7d1a504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/eu/faircode/email/ActivityView.java
Original file line number Diff line number Diff line change
Expand Up @@ -1613,16 +1613,16 @@ else if (show_changelog) {
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();
}
}
}

Expand Down

0 comments on commit 7d1a504

Please sign in to comment.