Remove CandidatesView related method call from voice ime

Change-Id: I33ccf2c141d94437b175222b9e65c0b4e2671a35
This commit is contained in:
Tadashi G. Takaoka 2011-05-23 17:19:48 +09:00
parent 20920c0178
commit 3a38fef7a0
2 changed files with 7 additions and 7 deletions

View file

@ -137,8 +137,8 @@ public class VoiceProxy implements VoiceInput.UiListener {
@Override @Override
public void showHint(int viewResource) { public void showHint(int viewResource) {
View view = LayoutInflater.from(mService).inflate(viewResource, null); View view = LayoutInflater.from(mService).inflate(viewResource, null);
mService.setCandidatesView(view); // mService.setCandidatesView(view);
mService.setCandidatesViewShown(true); // mService.setCandidatesViewShown(true);
mIsShowingHint = true; mIsShowingHint = true;
} }
}); });
@ -441,7 +441,7 @@ public class VoiceProxy implements VoiceInput.UiListener {
} }
builder.setTypedWordValid(true).setHasMinimalSuggestion(true); builder.setTypedWordValid(true).setHasMinimalSuggestion(true);
mService.setSuggestions(builder.build()); mService.setSuggestions(builder.build());
mService.setCandidatesViewShown(true); // mService.setCandidatesViewShown(true);
return true; return true;
} }
return false; return false;
@ -526,7 +526,7 @@ public class VoiceProxy implements VoiceInput.UiListener {
mHandler.post(new Runnable() { mHandler.post(new Runnable() {
@Override @Override
public void run() { public void run() {
mService.setCandidatesViewShown(false); // mService.setCandidatesViewShown(false);
mRecognizing = true; mRecognizing = true;
mVoiceInput.newView(); mVoiceInput.newView();
View v = mVoiceInput.getView(); View v = mVoiceInput.getView();

View file

@ -1420,9 +1420,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
} }
public void setSuggestions(SuggestedWords words) { public void setSuggestions(SuggestedWords words) {
if (mVoiceProxy.getAndResetIsShowingHint()) { // if (mVoiceProxy.getAndResetIsShowingHint()) {
setCandidatesView(mCandidateViewContainer); // setCandidatesView(mCandidateViewContainer);
} // }
if (mCandidateView != null) { if (mCandidateView != null) {
mCandidateView.setSuggestions(words); mCandidateView.setSuggestions(words);