Skip to content

Commit cf2d48d

Browse files
committed
fix(shortcuts): do not recycle bitmap before IconCompat copies it
1 parent f55e43b commit cf2d48d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/de/pawcode/cardstore/data/utils/ShortcutUpdater.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ internal fun createShortcutIcon(card: CardEntity): IconCompat {
9393
val textY = 54f - (textPaint.descent() + textPaint.ascent()) / 2f
9494
canvas.drawText(firstLetter, 54f, textY, textPaint)
9595

96-
return IconCompat.createWithAdaptiveBitmap(bitmap).also { bitmap.recycle() }
96+
return IconCompat.createWithAdaptiveBitmap(bitmap)
9797
}

0 commit comments

Comments
 (0)