Skip to content

Commit

Permalink
chore(android): fix type in generic folder (#4323)
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub authored Jan 4, 2025
1 parent 424f4ee commit c47d165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1926,8 +1926,6 @@ public void onCues(CueGroup cueGroup) {
}
}

// ReactExoplayerViewManager public api

public void setSrc(Source source) {
if (source.getUri() != null) {
clearResumePosition();
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ?")
}
Expand All @@ -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)
}

Expand Down

0 comments on commit c47d165

Please sign in to comment.