mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Merge "Removing some methods from the DragSource" into ub-launcher3-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
a9e345f886
@@ -283,24 +283,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