Merge "Fix unexpected ellipsize for long suggestion text." into nyc-dev

am: 71208d6f7b

* commit '71208d6f7b1a56dd6a1af101a65c944109a2bbb4':
  Fix unexpected ellipsize for long suggestion text.
This commit is contained in:
Seigo Nonaka
2016-03-03 20:47:33 +00:00
committed by android-build-merger

View File

@@ -3160,6 +3160,7 @@ public class Editor {
mTextView.getContext(), mTextView.mTextEditSuggestionHighlightStyle);
private TextView mAddToDictionaryButton;
private TextView mDeleteButton;
private ListView mSuggestionListView;
private SuggestionSpan mMisspelledSpan;
private int mContainerMarginWidth;
private int mContainerMarginTop;
@@ -3213,12 +3214,12 @@ public class Editor {
mClippingLimitLeft = lp.leftMargin;
mClippingLimitRight = lp.rightMargin;
final ListView suggestionListView = (ListView) relativeLayout.findViewById(
mSuggestionListView = (ListView) relativeLayout.findViewById(
com.android.internal.R.id.suggestionContainer);
mSuggestionsAdapter = new SuggestionAdapter();
suggestionListView.setAdapter(mSuggestionsAdapter);
suggestionListView.setOnItemClickListener(this);
mSuggestionListView.setAdapter(mSuggestionsAdapter);
mSuggestionListView.setOnItemClickListener(this);
// Inflate the suggestion items once and for all.
mSuggestionInfos = new SuggestionInfo[MAX_NUMBER_SUGGESTIONS];
@@ -3374,6 +3375,7 @@ public class Editor {
popupBackground.getPadding(mTempRect);
width += mTempRect.left + mTempRect.right;
}
mSuggestionListView.getLayoutParams().width = width;
mPopupWindow.setWidth(width);
}