chore(android): fix type in generic folder (#4323)

This commit is contained in:
Olivier Bouillet 2025-01-04 13:48:59 +01:00 committed by GitHub
parent 424f4eedde
commit c47d165668
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -1926,8 +1926,6 @@ public class ReactExoplayerView extends FrameLayout implements
}
}
// ReactExoplayerViewManager public api
public void setSrc(Source source) {
if (source.getUri() != null) {
clearResumePosition();

View File

@ -1,7 +1,6 @@
package com.brentvatne.react
import com.brentvatne.common.toolbox.DebugLog
import com.brentvatne.exoplayer.ReactExoplayerViewManager
/**
* ReactNativeVideoManager is a singleton class which allows to manipulate / the global state of the app
@ -23,13 +22,13 @@ class ReactNativeVideoManager : RNVPlugin {
}
}
private var instanceList: ArrayList<ReactExoplayerViewManager> = ArrayList()
private var instanceList: ArrayList<Any> = ArrayList()
private var pluginList: ArrayList<RNVPlugin> = ArrayList()
/**
* register a new ReactExoplayerViewManager in the managed list
*/
fun registerView(newInstance: ReactExoplayerViewManager) {
fun registerView(newInstance: Any) {
if (instanceList.size > 2) {
DebugLog.d(TAG, "multiple Video displayed ?")
}
@ -39,7 +38,7 @@ class ReactNativeVideoManager : RNVPlugin {
/**
* unregister existing ReactExoplayerViewManager in the managed list
*/
fun unregisterView(newInstance: ReactExoplayerViewManager) {
fun unregisterView(newInstance: Any) {
instanceList.remove(newInstance)
}