mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 19:55:11 +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,
|
context,
|
||||||
"Manga-${item.id?.toString() ?: item.title}"
|
"Manga-${item.id?.toString() ?: item.title}"
|
||||||
)
|
)
|
||||||
.setShortLabel(item.title)
|
.setShortLabel(item.title.takeUnless { it.isNotBlank() } ?: context.getString(R.string.manga))
|
||||||
.setLongLabel(item.title)
|
.setLongLabel(item.title.takeUnless { it.isNotBlank() } ?: context.getString(R.string.manga))
|
||||||
.setIcon(
|
.setIcon(
|
||||||
if (bitmap != null) if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
if (bitmap != null) if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
|
||||||
Icon.createWithAdaptiveBitmap(bitmap.toSquare())
|
Icon.createWithAdaptiveBitmap(bitmap.toSquare())
|
||||||
|
Loading…
Reference in New Issue
Block a user