mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Fixed shortcut icon issue
This commit is contained in:
parent
a23449aa75
commit
91c319b26d
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ class ImageUtils {
|
|||
var bm: Bitmap? = null
|
||||
if (fromPictureUri != null) {
|
||||
bm = try {
|
||||
Compatibility.getBitmapFromUri(context, fromPictureUri)
|
||||
// We make a copy to ensure Bitmap will be Software and not Hardware, required for shortcuts
|
||||
Compatibility.getBitmapFromUri(context, fromPictureUri).copy(Bitmap.Config.ARGB_8888, true)
|
||||
} catch (e: Exception) {
|
||||
Log.e("[Image Utils] Failed to get bitmap from URI [$fromPictureUri]: $e")
|
||||
return null
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue