mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Fixing nullpointer when creating new DB
LauncherProvider is not ready until the DBHelper is created Change-Id: Iabd61005892f15fd4a31d882100d87df2b2a7b85
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user