Merge "bug:3339065 enable sqlite concurrency enhancing feature on settingsprovider" into honeycomb
This commit is contained in:
@@ -262,11 +262,8 @@ public class SettingsProvider extends ContentProvider {
|
|||||||
|
|
||||||
// Watch for external modifications to the database file,
|
// Watch for external modifications to the database file,
|
||||||
// keeping our cache in sync.
|
// keeping our cache in sync.
|
||||||
// It's kinda lame to call mOpenHelper.getReadableDatabase()
|
SQLiteDatabase db = mOpenHelper.getWritableDatabase();
|
||||||
// during onCreate(), but since ensureAndroidIdIsSet has
|
db.enableWriteAheadLogging();
|
||||||
// already done it above and initialized/upgraded the
|
|
||||||
// database, might as well just use it...
|
|
||||||
SQLiteDatabase db = mOpenHelper.getReadableDatabase();
|
|
||||||
sObserverInstance = new SettingsFileObserver(db.getPath());
|
sObserverInstance = new SettingsFileObserver(db.getPath());
|
||||||
sObserverInstance.startWatching();
|
sObserverInstance.startWatching();
|
||||||
startAsyncCachePopulation();
|
startAsyncCachePopulation();
|
||||||
|
|||||||
Reference in New Issue
Block a user