mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Simplifying drag preview generation
> Fixing wrong icon normalization when dragging a folder icon > Reusing the preview bitmap for creating dragOutline > Generating drag outline on the background thread Bug: 35428783 Change-Id: I01e724ba63404302090ee1e562f6c2fc7147ba2f
This commit is contained in:
@@ -129,7 +129,7 @@ public class WidgetHostViewLoader implements DragController.DragListener {
|
||||
mWidgetLoadingId = -1;
|
||||
|
||||
hostView.setVisibility(View.INVISIBLE);
|
||||
int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(mInfo, false, true);
|
||||
int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(mInfo);
|
||||
// We want the first widget layout to be the correct size. This will be important
|
||||
// for width size reporting to the AppWidgetManager.
|
||||
DragLayer.LayoutParams lp = new DragLayer.LayoutParams(unScaledSize[0],
|
||||
|
||||
Reference in New Issue
Block a user