mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Not needed
This commit is contained in:
parent
ee8779cc00
commit
51179c083c
2 changed files with 7 additions and 11 deletions
|
|
@ -25,6 +25,7 @@ import android.content.Context
|
|||
import android.content.pm.PackageManager
|
||||
import android.database.Cursor
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
import android.net.Uri
|
||||
import android.provider.ContactsContract
|
||||
import androidx.annotation.UiThread
|
||||
|
|
@ -300,10 +301,7 @@ class ContactsManager @UiThread constructor(context: Context) {
|
|||
|
||||
val photo = account?.params?.pictureUri.orEmpty()
|
||||
val bm: Bitmap? = if (photo.isNotEmpty()) {
|
||||
ImageUtils.getRoundBitmapFromUri(
|
||||
coreContext.context,
|
||||
Uri.parse(photo ?: "")
|
||||
)
|
||||
BitmapFactory.decodeFile(photo)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
@ -332,10 +330,7 @@ fun Friend.getPerson(): Person {
|
|||
val personBuilder = Person.Builder().setName(name)
|
||||
|
||||
val bm: Bitmap? = if (!photo.isNullOrEmpty()) {
|
||||
ImageUtils.getRoundBitmapFromUri(
|
||||
coreContext.context,
|
||||
Uri.parse(photo ?: "")
|
||||
)
|
||||
BitmapFactory.decodeFile(photo)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import android.content.Intent
|
|||
import android.content.pm.PackageManager
|
||||
import android.content.pm.ServiceInfo
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.BitmapFactory
|
||||
import android.net.Uri
|
||||
import androidx.annotation.AnyThread
|
||||
import androidx.annotation.MainThread
|
||||
|
|
@ -490,7 +491,7 @@ class NotificationsManager @MainThread constructor(private val context: Context)
|
|||
coreContext.contactsManager.findContactByAddress(address)
|
||||
val contactPicture = contact?.photo
|
||||
val roundPicture = if (!contactPicture.isNullOrEmpty()) {
|
||||
ImageUtils.getRoundBitmapFromUri(context, Uri.parse(contactPicture))
|
||||
BitmapFactory.decodeFile(contactPicture)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
@ -592,7 +593,7 @@ class NotificationsManager @MainThread constructor(private val context: Context)
|
|||
coreContext.contactsManager.findContactByAddress(message.fromAddress)
|
||||
val contactPicture = contact?.photo
|
||||
val roundPicture = if (!contactPicture.isNullOrEmpty()) {
|
||||
ImageUtils.getRoundBitmapFromUri(context, Uri.parse(contactPicture))
|
||||
BitmapFactory.decodeFile(contactPicture)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
@ -650,7 +651,7 @@ class NotificationsManager @MainThread constructor(private val context: Context)
|
|||
coreContext.contactsManager.findContactByAddress(call.remoteAddress)
|
||||
val contactPicture = contact?.photo
|
||||
val roundPicture = if (!contactPicture.isNullOrEmpty()) {
|
||||
ImageUtils.getRoundBitmapFromUri(context, Uri.parse(contactPicture))
|
||||
BitmapFactory.decodeFile(contactPicture)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue