mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-05 13:46:59 +00:00
fix(android): fix crash at init
This commit is contained in:
@@ -100,7 +100,6 @@ class OmniPlayer(
|
||||
.setRemotePlayer(remote)
|
||||
.build()
|
||||
}
|
||||
eventMap.player = active
|
||||
active
|
||||
}
|
||||
|
||||
@@ -337,6 +336,10 @@ class OmniPlayer(
|
||||
}
|
||||
}
|
||||
|
||||
init {
|
||||
runOnMainThreadSync { eventMap.player = player }
|
||||
}
|
||||
|
||||
override var source: Source? = null
|
||||
set(value) {
|
||||
field = value
|
||||
|
||||
Reference in New Issue
Block a user