Merge pull request #2613 from nextcloud/bugfix/2612/fixNpeWhenRingtoneSilent

fix crash when joining call while silent ringtone is set
This commit is contained in:
Tim Krüger 2022-12-07 14:58:34 +01:00 committed by GitHub
commit b0a68e8193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2621,6 +2621,7 @@ public class CallActivity extends CallBaseActivity {
"/tr110_1_kap8_3_freiton1");
}
if (ringtoneUri != null) {
mediaPlayer = new MediaPlayer();
try {
mediaPlayer.setDataSource(this, ringtoneUri);
@ -2639,6 +2640,7 @@ public class CallActivity extends CallBaseActivity {
Log.e(TAG, "Failed to play sound");
}
}
}
private void stopCallingSound() {
if (mediaPlayer != null) {