Remove CandidatesView related method call from voice ime

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

View File

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