mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Modify strict mode thread policy for LauncherProvider.
Allowing thread writes too as SQLiteOpenHelper.getWritableDatabase needs it. Bug: 19094644 Change-Id: I39fe97a9e7fc07c38a4f8e5c5979196b742e36bf
This commit is contained in:
@@ -86,7 +86,7 @@ public class LauncherProvider extends ContentProvider {
|
||||
@Override
|
||||
public boolean onCreate() {
|
||||
final Context context = getContext();
|
||||
StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
|
||||
StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
|
||||
mOpenHelper = new DatabaseHelper(context);
|
||||
StrictMode.setThreadPolicy(oldPolicy);
|
||||
LauncherAppState.setLauncherProvider(this);
|
||||
|
||||
Reference in New Issue
Block a user