aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-02-19 09:46:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-19 09:46:15 +0000
commited616083dda090775c6d17ca073ccb80aaa1c4bd (patch)
treec9ade1d47b019c77d012c13b567e7393f8e3c2c4 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
parent3a7ed5fdfe5e2ceaabe80532a75380e2c6c1e012 (diff)
parent6abc852255072e9c5741a7d8f264bec99b0ce14e (diff)
downloadlatinime-ed616083dda090775c6d17ca073ccb80aaa1c4bd.tar.gz
latinime-ed616083dda090775c6d17ca073ccb80aaa1c4bd.tar.xz
latinime-ed616083dda090775c6d17ca073ccb80aaa1c4bd.zip
Merge "Turn personalization on when important notice dialog is displayed"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
index e77c55069..8ea712835 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
@@ -504,12 +504,13 @@ final class SuggestionStripLayoutHelper {
hintView, 1.0f - mCenterSuggestionWeight, ViewGroup.LayoutParams.MATCH_PARENT);
}
- public void layoutImportantNotice(final View importantNoticeStrip, final int stripWidth) {
+ public void layoutImportantNotice(final View importantNoticeStrip, final int stripWidth,
+ final String importantNoticeTitle) {
final TextView titleView = (TextView)importantNoticeStrip.findViewById(
R.id.important_notice_title);
final int width = stripWidth - titleView.getPaddingLeft() - titleView.getPaddingRight();
titleView.setTextColor(mColorAutoCorrect);
- final CharSequence importantNoticeTitle = titleView.getText();
+ titleView.setText(importantNoticeTitle);
titleView.setTextScaleX(1.0f); // Reset textScaleX.
final float titleScaleX = getTextScaleX(
importantNoticeTitle, width, titleView.getPaint());