Fixing nullpointer when creating new DB

LauncherProvider is not ready until the DBHelper is created
Change-Id: Iabd61005892f15fd4a31d882100d87df2b2a7b85
This commit is contained in:
Sunny Goyal
2015-06-16 15:10:36 -07:00
parent b42120300e
commit b4cbea4ad4
2 changed files with 15 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ public class WidgetPreviewLoader {
* Note: synchronized block used for this variable is expensive and the block should always
* be posted to a background thread.
*/
@Thunk Set<Bitmap> mUnusedBitmaps =
@Thunk final Set<Bitmap> mUnusedBitmaps =
Collections.newSetFromMap(new WeakHashMap<Bitmap, Boolean>());
private final Context mContext;
@@ -540,7 +540,7 @@ public class WidgetPreviewLoader {
*/
public class PreviewLoadRequest {
private final PreviewLoadTask mTask;
@Thunk final PreviewLoadTask mTask;
public PreviewLoadRequest(PreviewLoadTask task) {
mTask = task;