mirror of
https://codeberg.org/gitnex/GitNex
synced 2025-01-26 17:25:16 +01:00
simplify code
This commit is contained in:
parent
667d98329c
commit
25c6a9558f
@ -299,24 +299,12 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
|
||||
Log.e("changelogDialog", Objects.requireNonNull(e.getMessage()));
|
||||
}
|
||||
|
||||
if (!tinyDb.getBoolean("versionFlag")) {
|
||||
if (versionCode > tinyDb.getInt("versionCode")) {
|
||||
tinyDb.putInt("versionCode", versionCode);
|
||||
tinyDb.putBoolean("versionFlag", true);
|
||||
}
|
||||
else {
|
||||
tinyDb.putBoolean("versionFlag", false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
tinyDb.putBoolean("versionFlag", false);
|
||||
}
|
||||
|
||||
if(tinyDb.getBoolean("versionFlag")) {
|
||||
if (versionCode > tinyDb.getInt("versionCode")) {
|
||||
tinyDb.putInt("versionCode", versionCode);
|
||||
tinyDb.putBoolean("versionFlag", true);
|
||||
ChangeLog changelogDialog = new ChangeLog(this);
|
||||
changelogDialog.showDialog();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void setActionBarTitle (@NonNull String title) {
|
||||
|
Loading…
Reference in New Issue
Block a user