Revert "测试"
This reverts commit 80a8fab891604ee1eba92f7dca35e70228a00113.
This commit is contained in:
parent
80a8fab891
commit
8852275b1e
@ -63,16 +63,12 @@ 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