Merge "Attempt to fix crash on workspace drag and drop on certain JB devices" into ub-now-mister-ugly

This commit is contained in:
Adam Cohen
2014-04-05 00:13:45 +00:00
committed by Android (Google) Code Review
+7 -1
View File
@@ -736,7 +736,13 @@ public class DragLayer extends FrameLayout implements ViewGroup.OnHierarchyChang
mDropAnim.cancel();
}
if (mDropView != null) {
mDragController.onDeferredEndDrag(mDropView);
final DragView dropView = mDropView;
post(new Runnable() {
@Override
public void run() {
mDragController.onDeferredEndDrag(dropView);
}
});
}
mDropView = null;
invalidate();