chore(android): fix type in generic folder (#4323)
This commit is contained in:
		@@ -1926,8 +1926,6 @@ public class ReactExoplayerView extends FrameLayout implements
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // ReactExoplayerViewManager public api
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    public void setSrc(Source source) {
 | 
					    public void setSrc(Source source) {
 | 
				
			||||||
        if (source.getUri() != null) {
 | 
					        if (source.getUri() != null) {
 | 
				
			||||||
            clearResumePosition();
 | 
					            clearResumePosition();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
package com.brentvatne.react
 | 
					package com.brentvatne.react
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import com.brentvatne.common.toolbox.DebugLog
 | 
					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
 | 
					 * 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()
 | 
					    private var pluginList: ArrayList<RNVPlugin> = ArrayList()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * register a new ReactExoplayerViewManager in the managed list
 | 
					     * register a new ReactExoplayerViewManager in the managed list
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    fun registerView(newInstance: ReactExoplayerViewManager) {
 | 
					    fun registerView(newInstance: Any) {
 | 
				
			||||||
        if (instanceList.size > 2) {
 | 
					        if (instanceList.size > 2) {
 | 
				
			||||||
            DebugLog.d(TAG, "multiple Video displayed ?")
 | 
					            DebugLog.d(TAG, "multiple Video displayed ?")
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@@ -39,7 +38,7 @@ class ReactNativeVideoManager : RNVPlugin {
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * unregister existing ReactExoplayerViewManager in the managed list
 | 
					     * unregister existing ReactExoplayerViewManager in the managed list
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    fun unregisterView(newInstance: ReactExoplayerViewManager) {
 | 
					    fun unregisterView(newInstance: Any) {
 | 
				
			||||||
        instanceList.remove(newInstance)
 | 
					        instanceList.remove(newInstance)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user