Skip to content

Commit

Permalink
fix(android): make removeAllListeners return a promise (#5527)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Mar 29, 2022
1 parent 10408c0 commit 6f4d858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/capacitor/src/main/java/com/getcapacitor/Plugin.java
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 6f4d858

Please sign in to comment.