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:
1 parent
c0f21e1d3c
commit
ac8d748c07
1 file changed
+1
-5
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user