From ac8d748c07d07b06009fb45cd494c2456d6bb518 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Wed, 18 Jan 2012 17:52:30 -0800 Subject: [PATCH] Removing unnecessary post when removing DragView -> This fixes a jank bug where you could see a dragged item in two places for a frame, upon release of that item Change-Id: I5aecc3be530763f2f067fd496e2c8e1d6f95af13 --- src/com/android/launcher2/DragView.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/com/android/launcher2/DragView.java b/src/com/android/launcher2/DragView.java index dd94175b68..a3063b6e9b 100644 --- a/src/com/android/launcher2/DragView.java +++ b/src/com/android/launcher2/DragView.java @@ -222,11 +222,7 @@ public class DragView extends View { } void remove() { - post(new Runnable() { - public void run() { - mDragLayer.removeView(DragView.this); - } - }); + mDragLayer.removeView(DragView.this); } int[] getPosition(int[] result) {