aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-03-20 11:06:55 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-03-20 11:06:55 +0900
commit14e908c3486ae5996e66625e959ff45c5f3740ef (patch)
tree2b1481cc25d0b840a49d4dde91ae2fbc8a57f9a2 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
parent1aac375809df09c1ca28348a26292f0db2011a17 (diff)
downloadlatinime-14e908c3486ae5996e66625e959ff45c5f3740ef.tar.gz
latinime-14e908c3486ae5996e66625e959ff45c5f3740ef.tar.xz
latinime-14e908c3486ae5996e66625e959ff45c5f3740ef.zip
Remove unused argument in SuggestionStripLayoutHelper
Bug: 13461039 Change-Id: I3f6227bd56fb81021aaacf0e901eab8a9e91d4a1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
index 43cb11b14..3cdd07361 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
@@ -232,8 +232,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if (!ImportantNoticeUtils.shouldShowImportantNotice(getContext(), inputAttributes)) {
return false;
}
- final int width = getWidth();
- if (width <= 0) {
+ if (getWidth() <= 0) {
return false;
}
final String importantNoticeTitle = ImportantNoticeUtils.getNextImportantNoticeTitle(
@@ -241,7 +240,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if (TextUtils.isEmpty(importantNoticeTitle)) {
return false;
}
- mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, width, importantNoticeTitle);
+ mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, importantNoticeTitle);
mStripVisibilityGroup.showImportantNoticeStrip();
mImportantNoticeStrip.setOnClickListener(this);
return true;