From 7b27e7d0613c5bd23a33b0368c06db2252b796eb Mon Sep 17 00:00:00 2001 From: Steven Ng Date: Mon, 21 Jun 2021 15:36:57 +0100 Subject: [PATCH] Copy minSpanX & minSpanY when copying from an existing ItemInfo Test: Drop Gmail widget to home screen and configure it. Then, drop the widget to a home screen that doesn't have sufficient space to accommodate it. The gmail widget can't be dropped to that home page and is returned to its original position. Fix: 190582606 Change-Id: I177c09562d059b658e835cbb7fdde0d7bc6565d2 --- src/com/android/launcher3/model/data/ItemInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/model/data/ItemInfo.java b/src/com/android/launcher3/model/data/ItemInfo.java index 3abcc2b826..7091d2b143 100644 --- a/src/com/android/launcher3/model/data/ItemInfo.java +++ b/src/com/android/launcher3/model/data/ItemInfo.java @@ -168,6 +168,8 @@ public class ItemInfo { cellY = info.cellY; spanX = info.spanX; spanY = info.spanY; + minSpanX = info.minSpanX; + minSpanY = info.minSpanY; rank = info.rank; screenId = info.screenId; itemType = info.itemType;