Merge "Clear CandidateView in onStartInputView"

main
Tadashi G. Takaoka 2011-07-06 19:02:24 -07:00 committed by Android (Google) Code Review
commit b9a21448e3
2 changed files with 3 additions and 1 deletions

View File

@ -701,9 +701,9 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
mShowingAddToDictionary = false;
mShowingAutoCorrectionInverted = false;
mTouchToSave.setVisibility(GONE);
mCandidatesStrip.setVisibility(VISIBLE);
mCandidatesStrip.removeAllViews();
mCandidatesPane.removeAllViews();
closeCandidatesPane();
}
private void hidePreview() {

View File

@ -580,6 +580,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
switcher.updateShiftState();
}
if (mCandidateView != null)
mCandidateView.clear();
setSuggestionStripShownInternal(isCandidateStripVisible(), /* needsInputViewShown */ false);
// Delay updating suggestions because keyboard input view may not be shown at this point.
mHandler.postUpdateSuggestions();