mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Adding support for customizing shortcut pinning logic
> Allowing support for overring shortcut badge > Updating pendingShortcutInfo so that the handler can be easily overridden Bug: 268253894 Test: Verified on device Change-Id: I3184cb6494bc98c7eed33798b35b4e6e6a1e7ddc
This commit is contained in:
@@ -2690,7 +2690,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
private void onDropExternal(final int[] touchXY, final CellLayout cellLayout, DragObject d) {
|
||||
if (d.dragInfo instanceof PendingAddShortcutInfo) {
|
||||
WorkspaceItemInfo si = ((PendingAddShortcutInfo) d.dragInfo)
|
||||
.activityInfo.createWorkspaceItemInfo();
|
||||
.getActivityInfo(mLauncher).createWorkspaceItemInfo();
|
||||
if (si != null) {
|
||||
d.dragInfo = si;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user