From 12e5842e11ecd53755f43e99c592135b58ac694b Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 2 Sep 2022 03:23:45 -0700 Subject: [PATCH] Fix/android (#34573) Summary: This PR should fix the issues introduced by commit c34659a5d3ef24e6a0ace2a5cac242487225fed0. The problem is that `Collections.emptyList` creates a `List` which is not compatible with the `List` 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 --- .circleci/config.yml | 2 +- .../java/com/facebook/react/uimanager/JSPointerDispatcher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a5e010bc47c..ee8f1a63da1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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" diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java index f67e79a3b02..8c10504d669 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java @@ -361,7 +361,7 @@ public class JSPointerDispatcher { List lastHitPath = mLastHitPathByPointerId.containsKey(activePointerId) ? mLastHitPathByPointerId.get(activePointerId) - : Collections.emptyList(); + : new ArrayList(); float[] lastEventCoordinates = mLastEventCoodinatesByPointerId.containsKey(activePointerId)