summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Fufa <sfufa@google.com>2019-12-04 22:20:27 (GMT)
committerSamuel Fufa <sfufa@google.com>2019-12-04 22:21:12 (GMT)
commit02c794578c380745341956f1441d4c12798ae13f (patch)
tree5ad3b0dab333e102e56f036655f40acf164ff390
parentb6f8076e21806ef30b759db7bfb70deca1b07477 (diff)
downloadandroid_packages_apps_Trebuchet-02c794578c380745341956f1441d4c12798ae13f.zip
android_packages_apps_Trebuchet-02c794578c380745341956f1441d4c12798ae13f.tar.gz
android_packages_apps_Trebuchet-02c794578c380745341956f1441d4c12798ae13f.tar.bz2
Persist predicted items when dragged to workspace
Bug: 143787549 Test: Manual Change-Id: Ieff0ede4072a2a9a87a62b06ad846eedfe97583f
-rw-r--r--src/com/android/launcher3/model/ModelWriter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/model/ModelWriter.java b/src/com/android/launcher3/model/ModelWriter.java
index c69ace9..bdf3a69 100644
--- a/src/com/android/launcher3/model/ModelWriter.java
+++ b/src/com/android/launcher3/model/ModelWriter.java
@@ -103,7 +103,7 @@ public class ModelWriter {
*/
public void addOrMoveItemInDatabase(ItemInfo item,
int container, int screenId, int cellX, int cellY) {
- if (item.container == ItemInfo.NO_ID) {
+ if (item.id == ItemInfo.NO_ID) {
// From all apps
addItemToDatabase(item, container, screenId, cellX, cellY);
} else {