Skip to content

Commit

Permalink
Fix Email Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeasmine committed Aug 5, 2021
1 parent 82e6e2f commit 8a189c9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ private void setEmail(MethodCall call, final Result reply) {
String email = call.argument("email");
String emailAuthHashToken = call.argument("emailAuthHashToken");

OneSignal.setEmail(email, emailAuthHashToken, new OSFlutterEmailHandle(flutterRegistrar, channel, reply, "setEmail"));
OneSignal.setEmail(email, emailAuthHashToken, new OSFlutterEmailHandler(flutterRegistrar, channel, reply, "setEmail"));
}

private void logoutEmail(final Result reply) {
OneSignal.logoutEmail(new OSFlutterEmailHandle(flutterRegistrar, channel, reply, "logoutEmail"));
OneSignal.logoutEmail(new OSFlutterEmailHandler(flutterRegistrar, channel, reply, "logoutEmail"));
}

private void setSMSNumber(MethodCall call, final Result reply) {
Expand Down Expand Up @@ -396,10 +396,10 @@ public void notificationWillShowInForeground(OSNotificationReceivedEvent notific
}
}

static class OSFlutterEmailHandle extends OSFlutterHandler
static class OSFlutterEmailHandler extends OSFlutterHandler
implements OneSignal.EmailUpdateHandler {

OSFlutterEmailHandle(PluginRegistry.Registrar flutterRegistrar, MethodChannel channel, Result res, String methodName) {
OSFlutterEmailHandler(PluginRegistry.Registrar flutterRegistrar, MethodChannel channel, Result res, String methodName) {
super(flutterRegistrar, channel, res, methodName);
}

Expand Down

0 comments on commit 8a189c9

Please sign in to comment.