commit | cf93ef6cc9b647924cd468e1f6c2df7fad9cd74f | [log] [tgz] |
---|---|---|
author | Steven Ng <stevenckng@google.com> | Thu Apr 22 17:44:22 2021 +0100 |
committer | Steven Ng <stevenckng@google.com> | Thu Apr 22 17:45:16 2021 +0100 |
tree | e07380c6a0be2859c58ec746f5342fdc95484380 | |
parent | 8e64bba9cf5079dadc677d876958afc2f4aea706 [diff] |
Fix cast exception when dropping widgets to a drop target When inflating a widget directly in the DragView, I've overridden the layout param to FrameLayout.LayoutParam. Before drag complete, we should restore the previous layout param. Test: Drag a widget to a drop target. No crash is observed. Bug: 186111130 Change-Id: Ifd33d57a886496ab31d4e741870b0ae18ca9ce4e