Always use HIGH_CHANNEL_ID for incoming call notification
This commit is contained in:
@ -919,7 +919,7 @@ class BaresipService: Service() {
|
|||||||
startActivity(newIntent)
|
startActivity(newIntent)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
val channelId = if (shouldVibrate()) HIGH_CHANNEL_ID else MEDIUM_CHANNEL_ID
|
val channelId = HIGH_CHANNEL_ID
|
||||||
val callerNumber = peerUri.split(":")[1].split("@")[0]
|
val callerNumber = peerUri.split(":")[1].split("@")[0]
|
||||||
if (shouldStartRinging(channelId, callerNumber))
|
if (shouldStartRinging(channelId, callerNumber))
|
||||||
startRinging()
|
startRinging()
|
||||||
@ -944,7 +944,6 @@ class BaresipService: Service() {
|
|||||||
icon = IconCompat.createWithBitmap(callerContact.avatarImage!!.toCircle())
|
icon = IconCompat.createWithBitmap(callerContact.avatarImage!!.toCircle())
|
||||||
}
|
}
|
||||||
else if (callerContact is Contact.AndroidContact) {
|
else if (callerContact is Contact.AndroidContact) {
|
||||||
// AndroidContact has a URI, we must decode it
|
|
||||||
if (callerContact.thumbnailUri != null) {
|
if (callerContact.thumbnailUri != null) {
|
||||||
try {
|
try {
|
||||||
val source = ImageDecoder.createSource(contentResolver,
|
val source = ImageDecoder.createSource(contentResolver,
|
||||||
@ -1290,7 +1289,6 @@ class BaresipService: Service() {
|
|||||||
icon = IconCompat.createWithBitmap(senderContact.avatarImage!!.toCircle())
|
icon = IconCompat.createWithBitmap(senderContact.avatarImage!!.toCircle())
|
||||||
}
|
}
|
||||||
else if (senderContact is Contact.AndroidContact) {
|
else if (senderContact is Contact.AndroidContact) {
|
||||||
// AndroidContact has a URI, we must decode it
|
|
||||||
if (senderContact.thumbnailUri != null) {
|
if (senderContact.thumbnailUri != null) {
|
||||||
try {
|
try {
|
||||||
val source = ImageDecoder.createSource(contentResolver,
|
val source = ImageDecoder.createSource(contentResolver,
|
||||||
|
|||||||
Reference in New Issue
Block a user