Commit 68c9957d authored by yangwu.jia's avatar yangwu.jia

防止空指针

parent 8e7b26dd
......@@ -546,8 +546,10 @@ public class XFlutterView extends FrameLayout {
} else {
locales.add(config.locale);
}
if(flutterEngine!=null&&flutterEngine.getLocalizationChannel()!=null){
flutterEngine.getLocalizationChannel().sendLocales(locales);
}
}
/**
* Send various user preferences of this Android device to Flutter.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment