am 04e6827a: Fix settings db update sequence

* commit '04e6827ace936e0cbb666d8ef94635b73672aa41':
  Fix settings db update sequence
This commit is contained in:
Christopher Tate
2014-10-22 18:06:09 +00:00
committed by Android Git Automerger

View File

@@ -1829,16 +1829,18 @@ public class DatabaseHelper extends SQLiteOpenHelper {
}
if (upgradeVersion < 114) {
db.beginTransaction();
SQLiteStatement stmt = null;
try {
stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
+ " VALUES(?,?);");
loadSetting(stmt, Settings.Global.VOLTE_VT_ENABLED, ImsConfig.FeatureValueConstants.ON);
db.setTransactionSuccessful();
} finally {
db.endTransaction();
if (stmt != null) stmt.close();
if (mUserHandle == UserHandle.USER_OWNER) {
db.beginTransaction();
SQLiteStatement stmt = null;
try {
stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
+ " VALUES(?,?);");
loadSetting(stmt, Settings.Global.VOLTE_VT_ENABLED, ImsConfig.FeatureValueConstants.ON);
db.setTransactionSuccessful();
} finally {
db.endTransaction();
if (stmt != null) stmt.close();
}
}
upgradeVersion = 114;
}