From 510a36ee89658e36488bad6c8785046fc43f94c7 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 22 Mar 2012 19:22:05 -0700 Subject: Enable WAL mode using new API, which is more efficient. Bug: 6124556 Change-Id: I49b6ba6706878d0e78d8457cde7cb9055663bfe0 --- src/com/android/browser/provider/BrowserProvider2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/browser/provider') diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index 8d71266..6121abc 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -386,6 +386,7 @@ public class BrowserProvider2 extends SQLiteContentProvider { static final int DATABASE_VERSION = 32; public DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); + setWriteAheadLoggingEnabled(true); } @Override @@ -624,7 +625,6 @@ public class BrowserProvider2 extends SQLiteContentProvider { } public void onOpen(SQLiteDatabase db) { - db.enableWriteAheadLogging(); mSyncHelper.onDatabaseOpened(db); } -- cgit v1.1