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

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-04-22 18:08:26 +00:00
commit 2e17bbae0d
1 file changed
+1
@@ -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 = () -> {