am 14e908c3: Remove unused argument in SuggestionStripLayoutHelper
* commit '14e908c3486ae5996e66625e959ff45c5f3740ef': Remove unused argument in SuggestionStripLayoutHelpermain
commit
75742f839d
|
@ -507,7 +507,7 @@ 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 String importantNoticeTitle) {
|
||||
final TextView titleView = (TextView)importantNoticeStrip.findViewById(
|
||||
R.id.important_notice_title);
|
||||
|
@ -516,8 +516,7 @@ final class SuggestionStripLayoutHelper {
|
|||
titleView.setTextColor(mColorAutoCorrect);
|
||||
titleView.setText(importantNoticeTitle);
|
||||
titleView.setTextScaleX(1.0f); // Reset textScaleX.
|
||||
final float titleScaleX = getTextScaleX(
|
||||
importantNoticeTitle, width, titleView.getPaint());
|
||||
final float titleScaleX = getTextScaleX(importantNoticeTitle, width, titleView.getPaint());
|
||||
titleView.setTextScaleX(titleScaleX);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue