Merge "Removing some methods from the DragSource" into ub-launcher3-master

This commit is contained in:
TreeHugger Robot
2017-10-05 17:20:58 +00:00
committed by Android (Google) Code Review
12 changed files with 21 additions and 123 deletions

View File

@@ -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