Merge "Fix cast exception when dropping widgets to a drop target" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2e17bbae0d
@@ -240,6 +240,7 @@ public abstract class ButtonDropTarget extends TextView
|
|||||||
|
|
||||||
final Rect to = getIconRect(d);
|
final Rect to = getIconRect(d);
|
||||||
final float scale = (float) to.width() / from.width();
|
final float scale = (float) to.width() / from.width();
|
||||||
|
d.dragView.detachContentView(/* reattachToPreviousParent= */ true);
|
||||||
mDropTargetBar.deferOnDragEnd();
|
mDropTargetBar.deferOnDragEnd();
|
||||||
|
|
||||||
Runnable onAnimationEndRunnable = () -> {
|
Runnable onAnimationEndRunnable = () -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user