cmsdk: fix update path for version 7
* Do not break boot if clock position tunable is unset * Fixes I2412051289a922dfc72cdf266b47f32cf7aaa31a Change-Id: I8d841f324f5bf8499365ca48cdf6aa4710ccd957
This commit is contained in:
@@ -23,6 +23,7 @@ import android.content.res.AssetManager;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteDoneException;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
import android.database.sqlite.SQLiteStatement;
|
||||
import android.os.Build;
|
||||
@@ -249,6 +250,8 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
|
||||
stmt.execute();
|
||||
}
|
||||
db.setTransactionSuccessful();
|
||||
} catch (SQLiteDoneException ex) {
|
||||
// CMSettings.System.STATUS_BAR_CLOCK is not set
|
||||
} finally {
|
||||
if (stmt != null) stmt.close();
|
||||
db.endTransaction();
|
||||
|
||||
Reference in New Issue
Block a user