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

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

Simplify InputMethodSettings#isCurrentProfile()

This CL simplifies

  InputMethodSettings#isCurrentProfile()

without changing the observable behavior.

Given that

  UserManagerInternal#getProfileIds(int userId, boolean enabledOnly)

returns an array that includes "userId" itself, checking userId with

  InputMethodSettings#mCurrentUserId

is considered to be redundant.

This is a preparation to decouple InputMethodSettings from
InputMethodManagerService global instance.

Bug: 309837937
Test: presubmit
Change-Id: Iebe56c2da70c95e584be582a706716c137eeb15b
parent 032f39a7
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