Clean up dead, ugly and wrong code in icon and widget preview loading
Removed and fixed serveral instances of dead code and small bugs that grew in the widget preloading logic, discovered while chasing a bug. Bug: 12525890 Change-Id: I22e03eccecc07b73388cfd3c8462d947601c6e54
This commit is contained in:
@@ -225,17 +225,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
|
||||
private Rect mTmpRect = new Rect();
|
||||
|
||||
// Used for drawing shortcut previews
|
||||
BitmapCache mCachedShortcutPreviewBitmap = new BitmapCache();
|
||||
PaintCache mCachedShortcutPreviewPaint = new PaintCache();
|
||||
CanvasCache mCachedShortcutPreviewCanvas = new CanvasCache();
|
||||
|
||||
// Used for drawing widget previews
|
||||
CanvasCache mCachedAppWidgetPreviewCanvas = new CanvasCache();
|
||||
RectCache mCachedAppWidgetPreviewSrcRect = new RectCache();
|
||||
RectCache mCachedAppWidgetPreviewDestRect = new RectCache();
|
||||
PaintCache mCachedAppWidgetPreviewPaint = new PaintCache();
|
||||
|
||||
WidgetPreviewLoader mWidgetPreviewLoader;
|
||||
|
||||
private boolean mInBulkBind;
|
||||
|
||||
Reference in New Issue
Block a user