Skip to content

Commit

Permalink
fix: Android add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziomoscon committed Aug 14, 2021
1 parent 544b1a7 commit ca3468b
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;

import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.InstanceIdResult;

import com.twilio.audioswitch.AudioDevice;
import com.twilio.audioswitch.AudioSwitch;
Expand Down Expand Up @@ -94,7 +97,7 @@ public class TwilioVoiceModule extends ReactContextBaseJavaModule implements Act
static Map<String, Integer> callNotificationMap;

private RegistrationListener registrationListener = registrationListener();
private UnregistrationListener unregistrationListener = unregistrationListener();
private UnregistrationListener unregistrationListener = unregistrationListener();
private Call.Listener callListener = callListener();

private CallInvite activeCallInvite;
Expand Down Expand Up @@ -677,7 +680,7 @@ private void registerForCallInvites() {
Voice.register(accessToken, Voice.RegistrationChannel.FCM, fcmToken, registrationListener);
}

/*
/*
* Unregister your android device with Twilio
*
*/
Expand Down Expand Up @@ -760,10 +763,10 @@ public void reject() {
params.putString(Constants.CALL_TO, activeCallInvite.getTo());
activeCallInvite.reject(getReactApplicationContext());
}

Intent intent = new Intent(getReactApplicationContext(), IncomingCallNotificationService.class);
intent.setAction(Constants.ACTION_JS_REJECT);

getReactApplicationContext().startService(intent);

eventManager.sendEvent(EVENT_CALL_INVITE_CANCELLED, params);
Expand Down

0 comments on commit ca3468b

Please sign in to comment.