@@ -217,7 +217,6 @@ public boolean HandleMethodCall(@NonNull MethodCall call, @NonNull Result result
217
217
public void setup (ConstraintsMap options ) {
218
218
VoiceConnectionService .setAvailable (false );
219
219
this ._settings = options ;
220
-
221
220
if (isConnectionServiceAvailable ()) {
222
221
this .registerPhoneAccount ();
223
222
this .registerEvents ();
@@ -598,7 +597,7 @@ private void registerPhoneAccount(Context appContext) {
598
597
}
599
598
600
599
private void sendEventToFlutter (String eventName , @ Nullable ConstraintsMap params ) {
601
- _eventChannel .invokeMethod (eventName , params != null ? params .toMap () : null );
600
+ _eventChannel .invokeMethod (eventName , params .toMap ());
602
601
}
603
602
604
603
private String getApplicationName (Context appContext ) {
@@ -735,10 +734,10 @@ public void onReceive(Context context, Intent intent) {
735
734
sendEventToFlutter ("CallKeepDidReceiveStartCallAction" , args );
736
735
break ;
737
736
case ACTION_AUDIO_SESSION :
738
- sendEventToFlutter ("CallKeepDidActivateAudioSession" , null );
737
+ sendEventToFlutter ("CallKeepDidActivateAudioSession" , args );
739
738
break ;
740
739
case ACTION_CHECK_REACHABILITY :
741
- sendEventToFlutter ("CallKeepCheckReachability" , null );
740
+ sendEventToFlutter ("CallKeepCheckReachability" , args );
742
741
break ;
743
742
case ACTION_WAKE_APP :
744
743
Intent headlessIntent = new Intent (_context , CallKeepBackgroundMessagingService .class );
0 commit comments