mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Merge "pin-shortcut: Implements the actual pinning functionality" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a993d2b9d
@@ -216,11 +216,13 @@ public class TaskbarPopupController implements TaskbarControllers.LoggableTaskba
|
||||
return null;
|
||||
}
|
||||
if (itemInfo.container == CONTAINER_HOTSEAT) {
|
||||
return new PinToTaskbarShortcut<>(target, itemInfo, originalView, false);
|
||||
return new PinToTaskbarShortcut<>(target, itemInfo, originalView, false,
|
||||
mHotseatInfosList);
|
||||
}
|
||||
if (mHotseatInfosList.size()
|
||||
< mContext.getTaskbarSpecsEvaluator().getNumShownHotseatIcons()) {
|
||||
return new PinToTaskbarShortcut<>(target, itemInfo, originalView, true);
|
||||
return new PinToTaskbarShortcut<>(target, itemInfo, originalView, true,
|
||||
mHotseatInfosList);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user