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