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
This commit is contained in:
Adam Cohen
2012-01-18 17:52:30 -08:00
parent c0f21e1d3c
commit ac8d748c07

View File

@@ -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) {