From 45b4811c5b0b0801c5057207345072a34c359327 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Tue, 30 Jun 2020 15:36:58 +0100 Subject: [PATCH] Create adaptive icons for pinned games --- app/src/main/java/emu/skyline/AppDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/emu/skyline/AppDialog.kt b/app/src/main/java/emu/skyline/AppDialog.kt index 743491f6..3451bca4 100644 --- a/app/src/main/java/emu/skyline/AppDialog.kt +++ b/app/src/main/java/emu/skyline/AppDialog.kt @@ -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