Fix/android (#34573)

Summary:
This PR should fix the issues introduced by commit c34659a5d3.
The problem is that `Collections.emptyList` creates a `List<Object>` which is not compatible with the `List<TargetView>` type.

## Changelog

[Android] [Fixed] - Make Android CI build again.

Pull Request resolved: https://github.com/facebook/react-native/pull/34573

Test Plan: test_buck and the "test Docker android"  must be green.

Reviewed By: cipolleschi

Differential Revision: D39235674

Pulled By: cortinico

fbshipit-source-id: 574338e74aeb4635c67d91de28780fb784c9f405
This commit is contained in:
Riccardo Cipolleschi
2022-09-02 03:23:45 -07:00
committed by Facebook GitHub Bot
parent c34659a5d3
commit 12e5842e11
2 changed files with 2 additions and 2 deletions
@@ -361,7 +361,7 @@ public class JSPointerDispatcher {
List<ViewTarget> lastHitPath =
mLastHitPathByPointerId.containsKey(activePointerId)
? mLastHitPathByPointerId.get(activePointerId)
: Collections.emptyList();
: new ArrayList<ViewTarget>();
float[] lastEventCoordinates =
mLastEventCoodinatesByPointerId.containsKey(activePointerId)