diff --git a/src/es/esy/CosyDVR/BackgroundVideoRecorder.java b/src/es/esy/CosyDVR/BackgroundVideoRecorder.java index fdc5d6e..ed3eb47 100644 --- a/src/es/esy/CosyDVR/BackgroundVideoRecorder.java +++ b/src/es/esy/CosyDVR/BackgroundVideoRecorder.java @@ -455,8 +455,11 @@ public void RestartRecording() { AudioManager manager = (AudioManager) getSystemService(Context.AUDIO_SERVICE); manager.setStreamSolo(AudioManager.STREAM_SYSTEM, true); manager.setStreamMute(AudioManager.STREAM_SYSTEM, true); + int savedRingerMode = manager.getRingerMode(); + manager.setRingerMode(AudioManager.RINGER_MODE_SILENT); StopRecording(); StartRecording(); + manager.setRingerMode(savedRingerModer); manager.setStreamMute(AudioManager.STREAM_SYSTEM, false); manager.setStreamSolo(AudioManager.STREAM_SYSTEM, false); }