From b605102cfd360d9f5d0f003aaf7839b5ebd176df Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Sat, 14 Sep 2013 18:08:26 +0200 Subject: Solve fling-to-delete bug Delete target didn't hide after a fling because onDragEnd was being called twice --- src/com/android/launcher3/DeleteDropTarget.java | 2 -- src/com/android/launcher3/SearchDropTargetBar.java | 3 --- 2 files changed, 5 deletions(-) (limited to 'src') 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. -- cgit v1.2.3