From 575b0b466bec95899d036d85fbd2de7ed43b53ef Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Wed, 23 Mar 2022 14:50:59 +0100 Subject: [PATCH] fix(android): make removeAllListeners return a promise --- android/capacitor/src/main/java/com/getcapacitor/Plugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/capacitor/src/main/java/com/getcapacitor/Plugin.java b/android/capacitor/src/main/java/com/getcapacitor/Plugin.java index 7dff82f1df..5dccc054d7 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/Plugin.java +++ b/android/capacitor/src/main/java/com/getcapacitor/Plugin.java @@ -745,9 +745,10 @@ public void removeListener(PluginCall call) { * @param call */ @SuppressWarnings("unused") - @PluginMethod(returnType = PluginMethod.RETURN_NONE) + @PluginMethod(returnType = PluginMethod.RETURN_PROMISE) public void removeAllListeners(PluginCall call) { eventListeners.clear(); + call.resolve(); } /**