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

Skip to content
Commit 7a1b3dca authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Add InputMethodBindingController#getSelectedMethod()

This is a preparation before making

  InputMethodManagerService#mSwitchingController

per-user.

The following code is often used in InputMethodManagerService.

  final var settings =
     InputMethodSettingsRepository.get(userId);
  final var imi =
     settings.getMethodMap().get(getSelectedMethodIdLocked());

Let's add a utility method to InputMethodBindingController so that we
can avoid the above common code.

This is a mechanical refactoring CL. There must be no observable
behavior change.

Bug: 305849394
Test: presubmit
Flag: EXEMPT refactor
Change-Id: I0eda340a55141617a7a5c2642e7bebbfe71e71f9
parent 25baebe5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment