mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Invalidating sorted list after the item has been added
Bug: 19815825 Change-Id: If10d19d41a2400b5a7350e40fa6116494dc9c5a6
This commit is contained in:
@@ -1172,11 +1172,11 @@ public class Folder extends LinearLayout implements DragSource, View.OnClickList
|
||||
}
|
||||
|
||||
public void onAdd(ShortcutInfo item) {
|
||||
mItemsInvalidated = true;
|
||||
// If the item was dropped onto this open folder, we have done the work associated
|
||||
// with adding the item to the folder, as indicated by mSuppressOnAdd being set
|
||||
if (mSuppressOnAdd) return;
|
||||
mContent.createAndAddViewForRank(item, mContent.allocateRankForNewItem(item));
|
||||
mItemsInvalidated = true;
|
||||
LauncherModel.addOrMoveItemInDatabase(
|
||||
mLauncher, item, mInfo.id, 0, item.cellX, item.cellY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user