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
This commit is contained in:
Steven Ng 2021-06-21 15:36:57 +01:00
parent dd19a24769
commit 7b27e7d061
1 changed files with 2 additions and 0 deletions

View File

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