DO NOT MERGE Uses equals to compare the old/new subtypes. am: 4507d65f91

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21572440

Change-Id: I46313c019bfc6df21f01204035728d02d7f21f93
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Shu Chen
2023-03-01 01:50:49 +00:00
committed by Automerger Merge Worker

View File

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