Skip to content

Commit a38f71a

Browse files
author
saif
committed
set audio mode back to normal after end call
1 parent 4b1fa98 commit a38f71a

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)