aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/setup/SetupActivity.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-04-18 12:13:08 +0900
committerTadashi G. Takaoka <takaoka@google.com>2013-04-18 13:15:53 +0900
commitd794f5ae2aee44b9ce75cd675cb7138cd9a4ea82 (patch)
tree9923185b3b0c4cfd1556488f44c7a96c05b3b3c1 /java/src/com/android/inputmethod/latin/setup/SetupActivity.java
parenta19133011a1cbeb7a811a59d341c0fe65ba96001 (diff)
downloadlatinime-d794f5ae2aee44b9ce75cd675cb7138cd9a4ea82.tar.gz
latinime-d794f5ae2aee44b9ce75cd675cb7138cd9a4ea82.tar.xz
latinime-d794f5ae2aee44b9ce75cd675cb7138cd9a4ea82.zip
Update setup wizard icons
Bug: 8159728 Change-Id: Ia5a14a35292b43dc1eaa2d4edd65134040355149
Diffstat (limited to 'java/src/com/android/inputmethod/latin/setup/SetupActivity.java')
-rw-r--r--java/src/com/android/inputmethod/latin/setup/SetupActivity.java6
1 files changed, 2 insertions, 4 deletions
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);
}
}