summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-17 23:18:31 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-17 23:18:31 +0000
commit6d90827a53b0cf61318d26ce731936f3ddaa09ce (patch)
tree47847a77175ade1ef9b095dd3f6f1f6c68d4b442
parenta0ae2ce182a0abf9b68e1610cd3db0ef064b0dbe (diff)
parent96e03b3edfd417c018eadea754643af4300c23d8 (diff)
downloadLauncher3-6d90827a53b0cf61318d26ce731936f3ddaa09ce.tar.gz
Snap for 10509639 from 96e03b3edfd417c018eadea754643af4300c23d8 to udc-d1-release
Change-Id: I3f4cefab656cc4dc845f317175dcfeeb3b47cf39
-rw-r--r--src/com/android/launcher3/Launcher.java2
-rw-r--r--src/com/android/launcher3/folder/LauncherDelegate.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index ce8d25a12c..8fb68f1bf6 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -2187,6 +2187,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)
diff --git a/src/com/android/launcher3/folder/LauncherDelegate.java b/src/com/android/launcher3/folder/LauncherDelegate.java
index f15dc83387..7ac2472319 100644
--- a/src/com/android/launcher3/folder/LauncherDelegate.java
+++ b/src/com/android/launcher3/folder/LauncherDelegate.java
@@ -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;
}