From 1ee5811c8e0ecfc2486f5120b575b57c6396e0f8 Mon Sep 17 00:00:00 2001 From: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:56:58 +0200 Subject: [PATCH] fix(android): app crash at boot with old arch (#4022) * perf: ensure we do not provide callback to native if no callback provided from app * chore: rework bufferConfig to make it more generic and reduce ReactExoplayerView code size * chore: improve issue template * fix(android): avoid video view flickering at playback startup * fix: ensure player doesn't start when view is unmounted * Fix/ensure view drop stop playback startup (#3875) * fix: ensure player doesn't start when view is unmounted * chore: fix app boot due to missing registered events * chore: fix linter * chore: fix build * fix: handle code review feedbacks * chore: revert previous change to handle only necessary fix --- .../main/java/com/brentvatne/common/react/VideoEventEmitter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt b/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt index 8f29779a..b227bfc1 100644 --- a/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt +++ b/android/src/main/java/com/brentvatne/common/react/VideoEventEmitter.kt @@ -48,7 +48,7 @@ enum class EventTypes(val eventName: String) { fun toMap() = mutableMapOf().apply { EventTypes.values().toList().forEach { eventType -> - put("top${eventType.eventName.removePrefix("on")}", mapOf("registrationName" to eventType.eventName)) + put("top${eventType.eventName.removePrefix("on")}", hashMapOf("registrationName" to eventType.eventName)) } } }