commit | a9c1a3da63c83dd68424a0851079a55d110cc63a | [log] [tgz] |
---|---|---|
author | Tadashi G. Takaoka <takaoka@google.com> | Fri Mar 14 12:05:14 2014 +0900 |
committer | Tadashi G. Takaoka <takaoka@google.com> | Fri Mar 14 12:32:38 2014 +0900 |
tree | 18495608d1787fd62076a9b3c43e4abaf0947e0f | |
parent | 1f69164f069a3c19dd7a5ada507fb9228f91841a [diff] |
Fix clipped important notice message on tablet Bug: 13461039 Change-Id: I710bf10c9cbc202c7f6ee39ab4c8b9d699741a81
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java index afa8fe3..c26e223 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripLayoutHelper.java
@@ -511,7 +511,8 @@ final String importantNoticeTitle) { final TextView titleView = (TextView)importantNoticeStrip.findViewById( R.id.important_notice_title); - final int width = stripWidth - titleView.getPaddingLeft() - titleView.getPaddingRight(); + final int width = titleView.getWidth() - titleView.getPaddingLeft() + - titleView.getPaddingRight(); titleView.setTextColor(mColorAutoCorrect); titleView.setText(importantNoticeTitle); titleView.setTextScaleX(1.0f); // Reset textScaleX.