mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-31 19:41:19 +00:00
Init changelog
This commit is contained in:
parent
7602e073e7
commit
ce5d3ff64e
1 changed files with 5 additions and 4 deletions
|
@ -1103,15 +1103,14 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
}
|
||||
|
||||
private void checkFirst() {
|
||||
String current = BuildConfig.VERSION_NAME + "-" + BuildConfig.REVISION;
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
if (prefs.getBoolean("first", true))
|
||||
new FragmentDialogFirst().show(getSupportFragmentManager(), "first");
|
||||
else if (!BuildConfig.PLAY_STORE_RELEASE) {
|
||||
String current = BuildConfig.VERSION_NAME + "-" + BuildConfig.REVISION;
|
||||
String last = prefs.getString("changelog", current);
|
||||
String last = prefs.getString("changelog", null);
|
||||
if (!Objects.equals(current, last)) {
|
||||
prefs.edit().putString("changelog", current).apply();
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putString("name", "CHANGELOG.md");
|
||||
FragmentDialogMarkdown fragment = new FragmentDialogMarkdown();
|
||||
|
@ -1119,6 +1118,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
fragment.show(getSupportFragmentManager(), "changelog");
|
||||
}
|
||||
}
|
||||
|
||||
prefs.edit().putString("changelog", current).apply();
|
||||
}
|
||||
|
||||
private void checkBanner() {
|
||||
|
|
Loading…
Reference in a new issue