Adjusted Settings to use updated internal InputMethodManager methods
IMM#isStylusHandwritingAvailableAsUser, IMM#getEnabledInputMethodListAsUser, and IMM#getEnabledInputMethodSubtypeListAsUser use now UserHandle instead of userId. These internal APIs are used in Settings and are updated. Test: atest android.view.inputmethod.cts.installtests.MultiUserTest Fix: 283765791 Change-Id: Iedb301fbe26810f2101cbb2669b8be95b87a3e7f
This commit is contained in:
@@ -155,7 +155,7 @@ public class AvailableVirtualKeyboardFragment extends DashboardFragment
|
||||
final Context prefContext = getPrefContext();
|
||||
final List<InputMethodInfo> imis = mInputMethodSettingValues.getInputMethodList();
|
||||
final List<InputMethodInfo> enabledImis = getContext().getSystemService(
|
||||
InputMethodManager.class).getEnabledInputMethodListAsUser(mUserId);
|
||||
InputMethodManager.class).getEnabledInputMethodListAsUser(UserHandle.of(mUserId));
|
||||
final int numImis = (imis == null ? 0 : imis.size());
|
||||
for (int i = 0; i < numImis; ++i) {
|
||||
final InputMethodInfo imi = imis.get(i);
|
||||
|
Reference in New Issue
Block a user