am 04e6827a: Fix settings db update sequence
* commit '04e6827ace936e0cbb666d8ef94635b73672aa41': Fix settings db update sequence
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user