summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2013-09-14 18:08:26 +0200
committerMichael Jurka <mikejurka@google.com>2013-09-14 18:08:46 +0200
commitb605102cfd360d9f5d0f003aaf7839b5ebd176df (patch)
tree676d6e81933128a0e7286ce0862b44c9be12f6bf /src
parent046cf3443691dcc3f9fb257e5cd170950c032639 (diff)
downloadandroid_packages_apps_Trebuchet-b605102cfd360d9f5d0f003aaf7839b5ebd176df.tar.gz
android_packages_apps_Trebuchet-b605102cfd360d9f5d0f003aaf7839b5ebd176df.tar.bz2
android_packages_apps_Trebuchet-b605102cfd360d9f5d0f003aaf7839b5ebd176df.zip
Solve fling-to-delete bug
Delete target didn't hide after a fling because onDragEnd was being called twice
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/DeleteDropTarget.java2
-rw-r--r--src/com/android/launcher3/SearchDropTargetBar.java3
2 files changed, 0 insertions, 5 deletions
diff --git a/src/com/android/launcher3/DeleteDropTarget.java b/src/com/android/launcher3/DeleteDropTarget.java
index dce18fe0b..5705e38b5 100644
--- a/src/com/android/launcher3/DeleteDropTarget.java
+++ b/src/com/android/launcher3/DeleteDropTarget.java
@@ -509,8 +509,6 @@ public class DeleteDropTarget extends ButtonDropTarget {
Runnable onAnimationEndRunnable = new Runnable() {
@Override
public void run() {
- mSearchDropTargetBar.onDragEnd();
-
// If we are dragging from AllApps, then we allow AppsCustomizePagedView to clean up
// itself, otherwise, complete the drop to initiate the deletion process
if (!isAllApps) {
diff --git a/src/com/android/launcher3/SearchDropTargetBar.java b/src/com/android/launcher3/SearchDropTargetBar.java
index 0a0861f47..e681aa12c 100644
--- a/src/com/android/launcher3/SearchDropTargetBar.java
+++ b/src/com/android/launcher3/SearchDropTargetBar.java
@@ -23,13 +23,10 @@ import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
-import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.AccelerateInterpolator;
import android.widget.FrameLayout;
-import com.android.launcher3.R;
-
/*
* Ths bar will manage the transition between the QSB search bar and the delete drop
* targets so that each of the individual IconDropTargets don't have to.