Skip to content

Commit 12e5842

Browse files
Riccardo Cipolleschifacebook-github-bot
authored andcommitted
Fix/android (#34573)
Summary: This PR should fix the issues introduced by commit c34659a. 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: #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
1 parent c34659a commit 12e5842

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ jobs:
905905
# -------------------------
906906
prepare_hermes_workspace:
907907
docker:
908-
- image: debian:bullseye
908+
- image: debian:11.4
909909
environment:
910910
- HERMES_WS_DIR: *hermes_workspace_root
911911
- HERMES_VERSION_FILE: "sdks/.hermesversion"

ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ private void onMove(
361361
List<ViewTarget> lastHitPath =
362362
mLastHitPathByPointerId.containsKey(activePointerId)
363363
? mLastHitPathByPointerId.get(activePointerId)
364-
: Collections.emptyList();
364+
: new ArrayList<ViewTarget>();
365365

366366
float[] lastEventCoordinates =
367367
mLastEventCoodinatesByPointerId.containsKey(activePointerId)

0 commit comments

Comments
 (0)