Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHertal committed Feb 23, 2021
1 parent e53471a commit 6230a10
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TwilioPhoneModule(reactContext: ReactApplicationContext) : ReactContextBas

private var callListener = callListener()

private var audioManager: AudioManager = reactContext.getSystemService(Context.AUDIO_SERVICE) as AudioManager;
private var audioManager: AudioManager = reactContext.getSystemService(Context.AUDIO_SERVICE) as AudioManager

override fun getName(): String {
return "TwilioPhone"
Expand Down Expand Up @@ -172,7 +172,7 @@ class TwilioPhoneModule(reactContext: ReactApplicationContext) : ReactContextBas
@ReactMethod
fun toggleSpeaker(speakerOn: Boolean) {
Log.i(tag, "Toggling speaker")
audioManager.setSpeakerphoneOn(speakerOn);
audioManager.isSpeakerphoneOn = speakerOn
}

@ReactMethod
Expand Down
Loading

0 comments on commit 6230a10

Please sign in to comment.