Merge "Fix inability to remove or interact with folder when removing 2nd item from folder" into udc-qpr-dev am: a5af8b4276

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24040306

Change-Id: Ie74db8ca3a74287c79a13868ffb6209915809fae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-07-12 23:54:34 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -2200,6 +2200,8 @@ public class Launcher extends StatefulActivity<LauncherState>
/**
* Returns the CellLayout of the specified container at the specified screen.
*
* @param screenId must be presenterPos and not modelPos.
*/
public CellLayout getCellLayout(int container, int screenId) {
return (container == LauncherSettings.Favorites.CONTAINER_HOTSEAT)
@@ -93,7 +93,7 @@ public class LauncherDelegate {
// Move the item from the folder to the workspace, in the position of the
// folder
CellLayout cellLayout = mLauncher.getCellLayout(info.container,
info.screenId);
mLauncher.getCellPosMapper().mapModelToPresenter(info).screenId);
if (cellLayout == null) {
return;
}