am 04e6827a: Fix settings db update sequence

automerge: 281763b

* commit '281763ba1b4a6255799046f78930b586cd7e541c':
  Fix settings db update sequence
This commit is contained in:
Christopher Tate
2014-10-22 18:44:40 +00:00
committed by android-build-merger

View File

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