experiment: Does this fix the moxxy/moxxyv2#99?
This commit is contained in:
parent
c3f25a5ab5
commit
c48c804695
@ -75,13 +75,15 @@ class AndroidIsolateHandler extends IsolateHandler {
|
|||||||
) async {
|
) async {
|
||||||
_log.finest("Called start");
|
_log.finest("Called start");
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
|
final androidEntryHandle = PluginUtilities.getCallbackHandle(androidEntrypoint)!.toRawHandle();
|
||||||
|
_log.finest('AndroidEntryHandle: $androidEntryHandle');
|
||||||
await _channel.invokeMethod("configure", [
|
await _channel.invokeMethod("configure", [
|
||||||
PluginUtilities.getCallbackHandle(androidEntrypoint)!.toRawHandle(),
|
androidEntryHandle,
|
||||||
jsonEncode({
|
jsonEncode({
|
||||||
"genericEntrypoint": PluginUtilities.getCallbackHandle(entrypoint)!.toRawHandle(),
|
"genericEntrypoint": PluginUtilities.getCallbackHandle(entrypoint)!.toRawHandle(),
|
||||||
"eventHandle": PluginUtilities.getCallbackHandle(handleUIEvent)!.toRawHandle()
|
"eventHandle": PluginUtilities.getCallbackHandle(handleUIEvent)!.toRawHandle()
|
||||||
})
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
await attach(handleIsolateEvent);
|
await attach(handleIsolateEvent);
|
||||||
|
Reference in New Issue
Block a user