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

Commit 2bce95a3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove IInputMethodSession#finishInput(), which is called nowhere"

parents c2896a27 530dd76f
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -42,7 +42,6 @@ class IInputMethodSessionWrapper extends IInputMethodSession.Stub
        implements HandlerCaller.Callback {
    private static final String TAG = "InputMethodWrapper";

    private static final int DO_FINISH_INPUT = 60;
    private static final int DO_DISPLAY_COMPLETIONS = 65;
    private static final int DO_UPDATE_EXTRACTED_TEXT = 67;
    private static final int DO_UPDATE_SELECTION = 90;
@@ -89,9 +88,6 @@ class IInputMethodSessionWrapper extends IInputMethodSession.Stub
        }

        switch (msg.what) {
            case DO_FINISH_INPUT:
                mInputMethodSession.finishInput();
                return;
            case DO_DISPLAY_COMPLETIONS:
                mInputMethodSession.displayCompletions((CompletionInfo[])msg.obj);
                return;
@@ -149,11 +145,6 @@ class IInputMethodSessionWrapper extends IInputMethodSession.Stub
        }
    }

    @Override
    public void finishInput() {
        mCaller.executeOrSendMessage(mCaller.obtainMessage(DO_FINISH_INPUT));
    }

    @Override
    public void displayCompletions(CompletionInfo[] completions) {
        mCaller.executeOrSendMessage(mCaller.obtainMessageO(
+1 −3
Original line number Diff line number Diff line
@@ -29,8 +29,6 @@ import android.view.inputmethod.ExtractedText;
 * {@hide}
 */
oneway interface IInputMethodSession {
    void finishInput();

    void updateExtractedText(int token, in ExtractedText text);

    void updateSelection(int oldSelStart, int oldSelEnd,