Merge "DO NOT MERGE Uses equals to compare the old/new subtypes." into udc-dev

This commit is contained in:
Shu Chen
2023-03-01 01:36:31 +00:00
committed by Android (Google) Code Review

View File

@@ -3263,7 +3263,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
notifyInputMethodSubtypeChangedLocked(userId, info, null); notifyInputMethodSubtypeChangedLocked(userId, info, null);
return; return;
} }
if (newSubtype != oldSubtype) { if (!newSubtype.equals(oldSubtype)) {
setSelectedInputMethodAndSubtypeLocked(info, subtypeId, true); setSelectedInputMethodAndSubtypeLocked(info, subtypeId, true);
IInputMethodInvoker curMethod = getCurMethodLocked(); IInputMethodInvoker curMethod = getCurMethodLocked();
if (curMethod != null) { if (curMethod != null) {