mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:45:06 +01:00
Fix crash when recent manga has no title
This commit is contained in:
parent
87ef22003c
commit
704f57300b
@ -68,8 +68,8 @@ class MangaShortcutManager(
|
||||
context,
|
||||
"Manga-${item.id?.toString() ?: item.title}"
|
||||
)
|
||||
.setShortLabel(item.title)
|
||||
.setLongLabel(item.title)
|
||||
.setShortLabel(item.title.takeUnless { it.isNotBlank() } ?: context.getString(R.string.manga))
|
||||
.setLongLabel(item.title.takeUnless { it.isNotBlank() } ?: context.getString(R.string.manga))
|
||||
.setIcon(
|
||||
if (bitmap != null) if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
||||
Icon.createWithAdaptiveBitmap(bitmap.toSquare())
|
||||
|
Loading…
Reference in New Issue
Block a user