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
      e5f499176d

Bug: 234882948
Test: presubmit
Change-Id: Id9b14d8ced97b6a57f1cc5539f4f392aa70f9e51
This commit is contained in:
Yohei Yukawa
2022-10-04 08:35:00 -07:00
parent 10b858c39f
commit ccdc71e353

View File

@@ -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