测试
This commit is contained in:
		
							parent
							
								
									ea82c50d79
								
							
						
					
					
						commit
						80a8fab891
					
				| @ -63,12 +63,16 @@ public class FlutterOpenimSdkPlugin implements FlutterPlugin, MethodCallHandler, | |||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|     public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { |     public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { | ||||||
|  |         if(isInitialized){ | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|         channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), CHANNEL_NAME); |         channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), CHANNEL_NAME); | ||||||
|         context = flutterPluginBinding.getApplicationContext(); |         context = flutterPluginBinding.getApplicationContext(); | ||||||
|         channel.setMethodCallHandler(this); |         channel.setMethodCallHandler(this); | ||||||
|         connectivityListener = new ConnectivityListener(context); |         connectivityListener = new ConnectivityListener(context); | ||||||
|         visibilityListener = new VisibilityListener(); |         visibilityListener = new VisibilityListener(); | ||||||
|         connectivityListener.register(); |         connectivityListener.register(); | ||||||
|  |         isInitialized = true; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Override |     @Override | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user