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

Commit 68723904 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Remove IInputMethodClient.setUsingInputMethod()

This is a no-op method.

Bug: 112722651
Test: compile
Test: atest CtsInputMethodTestCases CtsInputMethodServiceHostTestCases
Change-Id: Ic990588c868f9173bbbe73dcfc5b193642dcc294
parent ea412d3b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -636,10 +636,6 @@ public final class InputMethodManager {
            }
        }

        @Override
        public void setUsingInputMethod(boolean state) {
        }

        @Override
        public void onBindMethod(InputBindResult res) {
            mH.obtainMessage(MSG_BIND, res).sendToTarget();
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import com.android.internal.view.InputBindResult;
 * itself and receive information about changes to the global manager state.
 */
oneway interface IInputMethodClient {
    void setUsingInputMethod(boolean state);
    void onBindMethod(in InputBindResult res);
    // unbindReason corresponds to InputMethodClient.UnbindReason.
    void onUnbindMethod(int sequence, int unbindReason);
+1 −4
Original line number Diff line number Diff line
@@ -138,10 +138,7 @@ class Session extends IWindowSession.Stub implements IBinder.DeathRecipient {
            // Note: it is safe to call in to the input method manager
            // here because we are not holding our lock.
            if (mService.mInputMethodManager != null) {
                mService.mInputMethodManager.addClient(client, inputContext,
                        mUid, mPid);
            } else {
                client.setUsingInputMethod(false);
                mService.mInputMethodManager.addClient(client, inputContext, mUid, mPid);
            }
            client.asBinder().linkToDeath(this, 0);
        } catch (RemoteException e) {