mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Do not modify the original item info when adding a new item in Worksapce
Fix: 418114270 Test: NA Flag: EXEMPT bug fix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dbd6f0d18f69d5d33862aaad015c4c8c5907fb46) Merged-In: Ic0dd00da4f363868a1c2abeeb736b86f6f706631 Change-Id: Ic0dd00da4f363868a1c2abeeb736b86f6f706631
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
1a3a1dea81
commit
cc18ee380e
@@ -2906,8 +2906,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
mLauncher.getStateManager().goToState(NORMAL, SPRING_LOADED_EXIT_DELAY);
|
||||
// TODO(b/414409465) We could just create a new info making a copy with all the new
|
||||
// needed values instead of choosing on each case what to modify.
|
||||
info.container = container;
|
||||
View view = mLauncher.getItemInflater().inflateItem(info, cellLayout);
|
||||
View view = mLauncher.getItemInflater().inflateItem(info, cellLayout, container);
|
||||
d.dragInfo = info = (ItemInfo) view.getTag();
|
||||
|
||||
// First we find the cell nearest to point at which the item is
|
||||
|
||||
Reference in New Issue
Block a user