Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a38fef7 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Remove CandidatesView related method call from voice ime

Change-Id: I33ccf2c141d94437b175222b9e65c0b4e2671a35
parent 20920c01
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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();
+3 −3
Original line number Diff line number Diff line
@@ -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);