Fix manga shortcuts saying "Manga"

This commit is contained in:
Jays2Kings 2021-04-26 21:18:14 -04:00
parent a71bdc14c5
commit b39225cac5

View File

@ -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())