@@ -217,7 +217,6 @@ public boolean HandleMethodCall(@NonNull MethodCall call, @NonNull Result result
217217 public void setup (ConstraintsMap options ) {
218218 VoiceConnectionService .setAvailable (false );
219219 this ._settings = options ;
220-
221220 if (isConnectionServiceAvailable ()) {
222221 this .registerPhoneAccount ();
223222 this .registerEvents ();
@@ -598,7 +597,7 @@ private void registerPhoneAccount(Context appContext) {
598597 }
599598
600599 private void sendEventToFlutter (String eventName , @ Nullable ConstraintsMap params ) {
601- _eventChannel .invokeMethod (eventName , params != null ? params .toMap () : null );
600+ _eventChannel .invokeMethod (eventName , params .toMap ());
602601 }
603602
604603 private String getApplicationName (Context appContext ) {
@@ -735,10 +734,10 @@ public void onReceive(Context context, Intent intent) {
735734 sendEventToFlutter ("CallKeepDidReceiveStartCallAction" , args );
736735 break ;
737736 case ACTION_AUDIO_SESSION :
738- sendEventToFlutter ("CallKeepDidActivateAudioSession" , null );
737+ sendEventToFlutter ("CallKeepDidActivateAudioSession" , args );
739738 break ;
740739 case ACTION_CHECK_REACHABILITY :
741- sendEventToFlutter ("CallKeepCheckReachability" , null );
740+ sendEventToFlutter ("CallKeepCheckReachability" , args );
742741 break ;
743742 case ACTION_WAKE_APP :
744743 Intent headlessIntent = new Intent (_context , CallKeepBackgroundMessagingService .class );
0 commit comments