mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Fix condition to check whether or not the database needs upgrading
This commit is contained in:
parent
cdd5694931
commit
ae7ddcdd5f
@ -653,7 +653,7 @@ public class K9 extends Application {
|
|||||||
|
|
||||||
int cachedVersion = sDatabaseVersionCache.getInt(KEY_LAST_ACCOUNT_DATABASE_VERSION, 0);
|
int cachedVersion = sDatabaseVersionCache.getInt(KEY_LAST_ACCOUNT_DATABASE_VERSION, 0);
|
||||||
|
|
||||||
if (cachedVersion > 0 && cachedVersion <= LocalStore.DB_VERSION) {
|
if (cachedVersion >= LocalStore.DB_VERSION) {
|
||||||
K9.setDatabasesUpToDate(false);
|
K9.setDatabasesUpToDate(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user