From d794f5ae2aee44b9ce75cd675cb7138cd9a4ea82 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 18 Apr 2013 12:13:08 +0900 Subject: Update setup wizard icons Bug: 8159728 Change-Id: Ia5a14a35292b43dc1eaa2d4edd65134040355149 --- java/src/com/android/inputmethod/latin/setup/SetupActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/setup/SetupActivity.java') diff --git a/java/src/com/android/inputmethod/latin/setup/SetupActivity.java b/java/src/com/android/inputmethod/latin/setup/SetupActivity.java index 099169aa9..e333e4d4f 100644 --- a/java/src/com/android/inputmethod/latin/setup/SetupActivity.java +++ b/java/src/com/android/inputmethod/latin/setup/SetupActivity.java @@ -313,10 +313,8 @@ public final class SetupActivity extends Activity { final int paddingEnd = ViewCompatUtils.getPaddingEnd(mActionLabel); ViewCompatUtils.setPaddingRelative(mActionLabel, paddingEnd, 0, paddingEnd, 0); } else { - final Drawable icon = res.getDrawable(actionIcon); - icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); - TextViewCompatUtils.setCompoundDrawablesRelative( - mActionLabel, icon, null, null, null); + TextViewCompatUtils.setCompoundDrawablesRelativeWithIntrinsicBounds( + mActionLabel, res.getDrawable(actionIcon), null, null, null); } } -- cgit v1.2.3-83-g751a