mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-02 04:32:02 +00:00
Merge pull request #2613 from nextcloud/bugfix/2612/fixNpeWhenRingtoneSilent
fix crash when joining call while silent ringtone is set
This commit is contained in:
commit
b0a68e8193
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user