am 6b6ffbe9: Merge "Invalidating sorted list after the item has been added" into ub-launcher3-burnaby

* commit '6b6ffbe9073223324a9abc6f29bdf23892786f1c':
  Invalidating sorted list after the item has been added
This commit is contained in:
Sunny Goyal
2015-03-18 18:17:13 +00:00
committed by Android Git Automerger
+1 -1
View File
@@ -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);
}