Skip to content

Commit e68ec34

Browse files
manuquentin requested changes updated
1. param routeSpeaker updated . 2. reformated code
1 parent 7c69d82 commit e68ec34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,9 @@ public void toggleAudioRouteSpeaker(String uuid, boolean routeSpeaker) {
428428
if (conn == null) {
429429
return;
430430
}
431-
if(useSpeaker){
431+
if (routeSpeaker) {
432432
conn.setAudioRoute(CallAudioState.ROUTE_SPEAKER);
433-
}else{
433+
} else {
434434
conn.setAudioRoute(CallAudioState.ROUTE_EARPIECE);
435435
}
436436
}

0 commit comments

Comments
 (0)