experiment: Does this fix the moxxy/moxxyv2#99?

This commit is contained in:
PapaTutuWawa 2022-08-28 12:30:37 +02:00
parent c3f25a5ab5
commit c48c804695

View File

@ -75,13 +75,15 @@ class AndroidIsolateHandler extends IsolateHandler {
) async {
_log.finest("Called start");
WidgetsFlutterBinding.ensureInitialized();
final androidEntryHandle = PluginUtilities.getCallbackHandle(androidEntrypoint)!.toRawHandle();
_log.finest('AndroidEntryHandle: $androidEntryHandle');
await _channel.invokeMethod("configure", [
PluginUtilities.getCallbackHandle(androidEntrypoint)!.toRawHandle(),
androidEntryHandle,
jsonEncode({
"genericEntrypoint": PluginUtilities.getCallbackHandle(entrypoint)!.toRawHandle(),
"eventHandle": PluginUtilities.getCallbackHandle(handleUIEvent)!.toRawHandle()
})
}),
]);
await attach(handleIsolateEvent);