Merge "Fix NPE in FlingToDeleteHelper" into sc-dev

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2021-03-02 20:00:53 +00:00
commit fe67c6be0b
1 file changed
+3
@@ -65,6 +65,9 @@ public class FlingToDeleteHelper {
}
public Runnable getFlingAnimation(DropTarget.DragObject dragObject, DragOptions options) {
if (options == null) {
return null;
}
PointF vel = isFlingingToDelete();
options.isFlingToDelete = vel != null;
if (!options.isFlingToDelete) {