Trigger DB schema change on application DB update Activity

This commit is contained in:
Moxie Marlinspike 2018-01-31 17:49:08 -08:00
parent 5496f5baac
commit 7b353a94d8

View File

@ -140,6 +140,8 @@ public class DatabaseFactory {
public void onApplicationLevelUpgrade(@NonNull Context context, @NonNull MasterSecret masterSecret,
int fromVersion, DatabaseUpgradeActivity.DatabaseUpgradeListener listener)
{
databaseHelper.getWritableDatabase();
ClassicOpenHelper legacyOpenHelper = null;
if (fromVersion < DatabaseUpgradeActivity.ASYMMETRIC_MASTER_SECRET_FIX_VERSION) {