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

* commit '59551217428a9cfbe11f727d0b69246a291931b5':
  Attempt to fix crash on workspace drag and drop on certain JB devices
This commit is contained in:
Adam Cohen
2014-04-05 02:57:37 +00:00
committed by Android Git Automerger
+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();