From 187e4701b6787fb2a5c8a4b967dca428fb01b549 Mon Sep 17 00:00:00 2001 From: jportoles Date: Wed, 18 Dec 2024 21:24:00 +0100 Subject: [PATCH] Fix: Incorrect AssetKind on Android adaptive icons Due to what appears to be a typo, Android adaptive icons were generated at a lower resolution than required, causing a slight blurriness on the native Android splash screen. This fixes that. --- src/platforms/android/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/android/index.ts b/src/platforms/android/index.ts index 8d1b7c3..cbe02ef 100644 --- a/src/platforms/android/index.ts +++ b/src/platforms/android/index.ts @@ -325,7 +325,7 @@ export class AndroidAssetGenerator extends AssetGenerator { private async generateAdaptiveIconForeground(asset: InputAsset, project: Project): Promise { const icons = Object.values(AndroidAssetTemplates).filter( - (a) => a.kind === AssetKind.Icon, + (a) => a.kind === AssetKind.AdaptiveIcon, ) as AndroidOutputAssetTemplateAdaptiveIcon[]; const pipe = asset.pipeline(); @@ -397,7 +397,7 @@ export class AndroidAssetGenerator extends AssetGenerator { private async generateAdaptiveIconBackground(asset: InputAsset, project: Project): Promise { const icons = Object.values(AndroidAssetTemplates).filter( - (a) => a.kind === AssetKind.Icon, + (a) => a.kind === AssetKind.AdaptiveIcon, ) as AndroidOutputAssetTemplateAdaptiveIcon[]; const pipe = asset.pipeline();