mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-21 23:32:51 +00:00
Simplification
This commit is contained in:
parent
1b779b08e1
commit
7d1a504979
1 changed files with 3 additions and 3 deletions
|
@ -1613,18 +1613,18 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void checkBanner() {
|
||||
long now = new Date().getTime();
|
||||
|
|
Loading…
Reference in a new issue