Use user-aware context in IMMS#queryInputMethodServicesInternal
As queryInputMethodServicesInternal is to query the installed IME apps of the given userId with returning the list of InputMethodInfo, however, there is a bug that it always initializes InputMethodInfo with user 0's XML resources from the system context. Fix this issue by using user-aware context to ensure creating InputMethodInfo will load the correct resources settings with the corresponding context of the userId. Fix: 249081323 Test: atest CtsInputMethodTestCases Change-Id: I47578c8bba5d9e04301ed3727ad1efa6496653e6
Loading
Please register or sign in to comment