From 6fa61bbb04ea18420b738c4ccf094d813edbe2fa Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Thu, 25 Oct 2018 22:34:44 -0700 Subject: [PATCH] Fix PackageInstaller icon resizing issue Bug: 114719061 Test: builds, installed the app and verified visually TL;DR;; when main icon is rendered, there's no guarantee that the icon will be rendered in 48dp view. For the inset to be applied proportionally, percentage should be used instead of static dp unit. Change-Id: Iacfcf7a5a2aa430c70c5db7c803267cf7eb5ad45 --- .../PackageInstaller/res/drawable/app_icon_foreground.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/PackageInstaller/res/drawable/app_icon_foreground.xml b/packages/PackageInstaller/res/drawable/app_icon_foreground.xml index b1f40c12b9ddb..2dcd49cce3ccf 100644 --- a/packages/PackageInstaller/res/drawable/app_icon_foreground.xml +++ b/packages/PackageInstaller/res/drawable/app_icon_foreground.xml @@ -16,10 +16,10 @@ --> + android:insetTop="25%" + android:insetRight="25%" + android:insetBottom="25%" + android:insetLeft="25%">