Persist predicted items when dragged to workspace

Bug: 143787549
Test: Manual
Change-Id: Ieff0ede4072a2a9a87a62b06ad846eedfe97583f
This commit is contained in:
Samuel Fufa
2019-12-04 14:20:27 -08:00
parent b6f8076e21
commit 02c794578c

View File

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