Merge "Fix cast exception when dropping widgets to a drop target" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-22 18:08:26 +00:00
committed by Android (Google) Code Review
@@ -240,6 +240,7 @@ public abstract class ButtonDropTarget extends TextView
final Rect to = getIconRect(d);
final float scale = (float) to.width() / from.width();
d.dragView.detachContentView(/* reattachToPreviousParent= */ true);
mDropTargetBar.deferOnDragEnd();
Runnable onAnimationEndRunnable = () -> {