Create adaptive icons for pinned games

This commit is contained in:
Billy Laws 2020-06-30 15:36:58 +01:00 committed by ◱ PixelyIon
parent da0100042b
commit 45b4811c5b

View File

@ -81,7 +81,7 @@ class AppDialog(val item : AppItem? = null) : BottomSheetDialogFragment() {
val info = ShortcutInfo.Builder(context, item.title)
info.setShortLabel(item.meta.name)
info.setActivity(ComponentName(context!!, EmulationActivity::class.java))
info.setIcon(Icon.createWithBitmap(item.icon ?: missingIcon))
info.setIcon(Icon.createWithAdaptiveBitmap(item.icon ?: missingIcon))
val intent = Intent(context, EmulationActivity::class.java)
intent.data = item.uri