summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeleteDropTarget.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-09-18 18:53:48 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-18 18:53:48 +0000
commit26bfdd9d5a0cc590d78a849d3401b52c02494a2c (patch)
treebb44dbd8614569a078fb89f11ee1be7edadab6a1 /src/com/android/launcher3/DeleteDropTarget.java
parent8580dd584a59b8895db0f4603321346ffe3ecd26 (diff)
parenta3c9fb125c7449df5add990e91e0e3471e3cc776 (diff)
downloadandroid_packages_apps_Trebuchet-26bfdd9d5a0cc590d78a849d3401b52c02494a2c.tar.gz
android_packages_apps_Trebuchet-26bfdd9d5a0cc590d78a849d3401b52c02494a2c.tar.bz2
android_packages_apps_Trebuchet-26bfdd9d5a0cc590d78a849d3401b52c02494a2c.zip
am a3c9fb12: Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish
* commit 'a3c9fb125c7449df5add990e91e0e3471e3cc776': Requiring key chord to delete icons and folders on the workspace
Diffstat (limited to 'src/com/android/launcher3/DeleteDropTarget.java')
-rw-r--r--src/com/android/launcher3/DeleteDropTarget.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/DeleteDropTarget.java b/src/com/android/launcher3/DeleteDropTarget.java
index 6d8fa6bd0..76e14f51c 100644
--- a/src/com/android/launcher3/DeleteDropTarget.java
+++ b/src/com/android/launcher3/DeleteDropTarget.java
@@ -70,8 +70,10 @@ public class DeleteDropTarget extends ButtonDropTarget {
* @return true if the item was removed.
*/
public static boolean removeWorkspaceOrFolderItem(Launcher launcher, ItemInfo item, View view) {
- // Remove the item from launcher and the db
- launcher.removeItem(view, item, true /* deleteFromDb */);
+ // Remove the item from launcher and the db, we can ignore the containerInfo in this call
+ // because we already remove the drag view from the folder (if the drag originated from
+ // a folder) in Folder.beginDrag()
+ launcher.removeItem(view, null, item, true /* deleteFromDb */);
launcher.getWorkspace().stripEmptyScreens();
return true;
}