Skip to content

Commit

Permalink
Fix/android (#34573)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Riccardo Cipolleschi authored and facebook-github-bot committed Sep 2, 2022
1 parent c34659a commit 12e5842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ jobs:
# -------------------------
prepare_hermes_workspace:
docker:
- image: debian:bullseye
- image: debian:11.4
environment:
- HERMES_WS_DIR: *hermes_workspace_root
- HERMES_VERSION_FILE: "sdks/.hermesversion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private void onMove(
List<ViewTarget> lastHitPath =
mLastHitPathByPointerId.containsKey(activePointerId)
? mLastHitPathByPointerId.get(activePointerId)
: Collections.emptyList();
: new ArrayList<ViewTarget>();

float[] lastEventCoordinates =
mLastEventCoodinatesByPointerId.containsKey(activePointerId)
Expand Down

0 comments on commit 12e5842

Please sign in to comment.