Merge "pin-shortcut: Implements the actual pinning functionality" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2025-03-07 18:09:10 -08:00
commit 9a993d2b9d
2 files changed
+57 -6

No files matched your search

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