aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/setup/SetupActivity.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2013-05-15 10:46:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-15 10:46:52 -0700
commita06fdaadaed7ef17ab1a7d0f448813653e1d03ea (patch)
tree8cd54780d193243a7374155ba5b0fe70ae1edf13 /java/src/com/android/inputmethod/latin/setup/SetupActivity.java
parent1efcbd67cd445d8c9218ed50d5ef8d5b9e3a273a (diff)
parent64e87b3e660199b5dd7539fe413146e4dfbf977f (diff)
downloadlatinime-a06fdaadaed7ef17ab1a7d0f448813653e1d03ea.tar.gz
latinime-a06fdaadaed7ef17ab1a7d0f448813653e1d03ea.tar.xz
latinime-a06fdaadaed7ef17ab1a7d0f448813653e1d03ea.zip
am 64e87b3e: am 0b2d184a: Merge "Update setup wizard icons"
* commit '64e87b3e660199b5dd7539fe413146e4dfbf977f': Update setup wizard icons
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);
}
}