Merge "Simplify IMMS#startVrInputMethodNoCheck a bit"

This commit is contained in:
TreeHugger Robot
2017-12-11 20:39:44 +00:00
committed by Android (Google) Code Review

View File

@@ -889,7 +889,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
/**
* Start a VR InputMethod that matches IME with package name of {@param component}.
* Note: This method is called from {@link VrManager}.
* Note: This method is called from {@link android.app.VrManager}.
*/
private void startVrInputMethodNoCheck(@Nullable ComponentName component) {
if (component == null) {
@@ -903,7 +903,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
for (InputMethodInfo info : mMethodList) {
if (TextUtils.equals(info.getPackageName(), packageName) && info.isVrOnly()) {
// set this is as current inputMethod without updating settings.
setInputMethodEnabled(info.getId(), true);
setInputMethodEnabledLocked(info.getId(), true);
setInputMethodLocked(info.getId(), NOT_A_SUBTYPE_ID);
break;
}