diff --git a/core/res/res/layout/autofill_fill_dialog.xml b/core/res/res/layout/autofill_fill_dialog.xml index 2e65800d5abbc..d1a4935633cbb 100644 --- a/core/res/res/layout/autofill_fill_dialog.xml +++ b/core/res/res/layout/autofill_fill_dialog.xml @@ -35,10 +35,10 @@ + android:layout_height="@dimen/autofill_dialog_icon_max_height" + android:layout_width="fill_parent"/> + android:layout_height="@dimen/autofill_save_icon_max_height" + android:layout_width="fill_parent"/> diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index bc0af12e95690..5240b57a952e6 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -874,6 +874,7 @@ 32dp 16dp 32dp + 56dp 8dp 16dp 16dp @@ -882,19 +883,15 @@ 20% - - 300dp - 3 - + 32dp + + 56dp + 56dp diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 73e3b417f67ae..c5af6b1ab07e0 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -3654,7 +3654,6 @@ - @@ -5011,7 +5010,7 @@ - + diff --git a/services/autofill/java/com/android/server/autofill/ui/SaveUi.java b/services/autofill/java/com/android/server/autofill/ui/SaveUi.java index 12042594fefbd..a2b08405ab366 100644 --- a/services/autofill/java/com/android/server/autofill/ui/SaveUi.java +++ b/services/autofill/java/com/android/server/autofill/ui/SaveUi.java @@ -563,25 +563,7 @@ final class SaveUi { private void setServiceIcon(Context context, View view, Drawable serviceIcon) { final ImageView iconView = view.findViewById(R.id.autofill_save_icon); final Resources res = context.getResources(); - - final int maxWidth = res.getDimensionPixelSize(R.dimen.autofill_save_icon_max_size); - final int maxHeight = maxWidth; - final int actualWidth = serviceIcon.getMinimumWidth(); - final int actualHeight = serviceIcon.getMinimumHeight(); - - if (actualWidth <= maxWidth && actualHeight <= maxHeight) { - if (sDebug) { - Slog.d(TAG, "Adding service icon " - + "(" + actualWidth + "x" + actualHeight + ") as it's less than maximum " - + "(" + maxWidth + "x" + maxHeight + ")."); - } - iconView.setImageDrawable(serviceIcon); - } else { - Slog.w(TAG, "Not adding service icon of size " - + "(" + actualWidth + "x" + actualHeight + ") because maximum is " - + "(" + maxWidth + "x" + maxHeight + ")."); - ((ViewGroup)iconView.getParent()).removeView(iconView); - } + iconView.setImageDrawable(serviceIcon); } private static boolean isValidLink(PendingIntent pendingIntent, Intent intent) {