From c70cbf65b5656a3dcb983f7950c95df0654c16d1 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Thu, 4 Mar 2021 16:09:04 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=B8=8D=E8=83=BD=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=8E=A5=E6=94=B6=E8=8F=9C=E5=8D=95=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/finogeeks/mop/api/mop/AppletHandlerModule.java | 1 - lib/api.dart | 2 +- lib/mop.dart | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java index 355fea6..831e7ab 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/AppletHandlerModule.java @@ -182,7 +182,6 @@ public class AppletHandlerModule extends BaseApi { handler.post(() -> { channel.invokeMethod("extensionApi:onCustomMenuClick", params); }); - callback.onSuccess(null); } @Override diff --git a/lib/api.dart b/lib/api.dart index 1b6b61e..f5e5f6f 100644 --- a/lib/api.dart +++ b/lib/api.dart @@ -34,6 +34,6 @@ abstract class AppletHandler { Future> getCustomMenus(String appId); ///自定义菜单点击处理 - Future onCustomMenuClick( + Future onCustomMenuClick( String appId, String path, String menuId, String appInfo); } diff --git a/lib/mop.dart b/lib/mop.dart index 82c141b..1ab0a4b 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -180,7 +180,7 @@ class Mop { print("registerAppletHandler getCustomMenus list $list"); return list; }; - _extensionApis["onCustomMenuClick"] = (params) { + _extensionApis["onCustomMenuClick"] = (params) async { return handler.onCustomMenuClick( params["appId"], params["path"], params["menuId"], params["appInfo"]); };