mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 19:31:49 +01:00
Fix manga shortcuts saying "Manga"
This commit is contained in:
parent
a71bdc14c5
commit
b39225cac5
@ -68,8 +68,8 @@ class MangaShortcutManager(
|
|||||||
context,
|
context,
|
||||||
"Manga-${item.id?.toString() ?: item.title}"
|
"Manga-${item.id?.toString() ?: item.title}"
|
||||||
)
|
)
|
||||||
.setShortLabel(item.title.takeUnless { it.isNotBlank() } ?: context.getString(R.string.manga))
|
.setShortLabel(item.title.takeUnless { it.isBlank() } ?: context.getString(R.string.manga))
|
||||||
.setLongLabel(item.title.takeUnless { it.isNotBlank() } ?: context.getString(R.string.manga))
|
.setLongLabel(item.title.takeUnless { it.isBlank() } ?: 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