Skip to content

Commit 1666694

Browse files
authored
Merge pull request #633 from saif-o99/audio_mode_fix
set audio mode back to normal after end call
2 parents b8eccd0 + a38f71a commit 1666694

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ public void endCall(String uuid) {
392392
Log.w(TAG, "[RNCallKeepModule] endCall ignored because no connection found, uuid: " + uuid);
393393
return;
394394
}
395+
Context context = this.getAppContext();
396+
AudioManager audioManager = (AudioManager) context.getSystemService(context.AUDIO_SERVICE);
397+
audioManager.setMode(0);
395398
conn.onDisconnect();
396399

397400
Log.d(TAG, "[RNCallKeepModule] endCall executed, uuid: " + uuid);

0 commit comments

Comments
 (0)