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

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

Simplify IInputMethodInvoker#updateEditorToolType() a bit

This is a mechanical refactoring CL that simplifies

  IInputMethodInvoker#updateEditorToolType(),

which was added recently [1], by making its return value void from
boolean, because no one checks its return value.

There should be no observable behavior change.

 [1]: I91ea9204ef62697b8942b0f350169382f18b3278
      e5f49917

Bug: 234882948
Test: presubmit
Change-Id: Id9b14d8ced97b6a57f1cc5539f4f392aa70f9e51
parent 10b858c3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -221,14 +221,12 @@ final class IInputMethodInvoker {
    }

    @AnyThread
    boolean updateEditorToolType(int toolType) {
    void updateEditorToolType(@MotionEvent.ToolType int toolType) {
        try {
            mTarget.updateEditorToolType(toolType);
        } catch (RemoteException e) {
            logRemoteException(e);
            return false;
        }
        return true;
    }

    @AnyThread