mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
looping the call ringtones instead of relying on the ringtone to contain looping metadata
This commit is contained in:
parent
0d6e8bdeb3
commit
66737c6ec9
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ class CallRingPlayerIncoming(
|
|||
val ringtoneUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE)
|
||||
ringtone = RingtoneManager.getRingtone(applicationContext, ringtoneUri)
|
||||
Timber.v("Play ringtone for incoming call")
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
ringtone?.isLooping = true
|
||||
}
|
||||
ringtone?.play()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue