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
This commit is contained in:
Hyunyoung Song
2018-10-25 22:34:44 -07:00
parent 148eba158c
commit 6fa61bbb04

View File

@@ -16,10 +16,10 @@
-->
<inset
xmlns:android="http://schemas.android.com/apk/res/android"
android:insetTop="12dp"
android:insetRight="12dp"
android:insetBottom="12dp"
android:insetLeft="12dp">
android:insetTop="25%"
android:insetRight="25%"
android:insetBottom="25%"
android:insetLeft="25%">
<vector
android:width="24dp"