mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Removing some methods from the DragSource
This makes is easier to create new DragSource and sets up proper default values in DragOptions Change-Id: I6cb0b1df41b9730cf29f785fe85fe7f0b573ee3a
This commit is contained in:
@@ -290,24 +290,12 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
|
||||
dragController.removeDragListener(this);
|
||||
}
|
||||
});
|
||||
mLauncher.getWorkspace().beginDragShared(v, this, new DragOptions());
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsAppInfoDropTarget() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsDeleteDropTarget() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getIntrinsicIconScaleFactor() {
|
||||
DeviceProfile grid = mLauncher.getDeviceProfile();
|
||||
return (float) grid.allAppsIconSizePx / grid.iconSizePx;
|
||||
DragOptions options = new DragOptions();
|
||||
options.intrinsicIconScaleFactor = (float) grid.allAppsIconSizePx / grid.iconSizePx;
|
||||
mLauncher.getWorkspace().beginDragShared(v, this, options);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user