From a8d21f00c25b6f29de7a867a23c8b84165752426 Mon Sep 17 00:00:00 2001 From: Nikolas Havrikov Date: Thu, 16 Jun 2022 17:22:25 +0200 Subject: [PATCH] Copy targetInputMethodUser in EditorInfo This CL extends EditorInfo.createCopyInternal to also copy the targetInputMethodUser field to the newly created instance. Test: atest android.view.inputmethod.EditorInfoTest Fix: 236238539 Change-Id: Ic546e35978ad7ff5be824d34168088e68d3d9b36 --- core/java/android/view/inputmethod/EditorInfo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/view/inputmethod/EditorInfo.java b/core/java/android/view/inputmethod/EditorInfo.java index 6b7a6e946d0e6..949237548926b 100644 --- a/core/java/android/view/inputmethod/EditorInfo.java +++ b/core/java/android/view/inputmethod/EditorInfo.java @@ -1016,6 +1016,7 @@ public class EditorInfo implements InputType, Parcelable { newEditorInfo.mInitialSurroundingText = mInitialSurroundingText; newEditorInfo.hintLocales = hintLocales; newEditorInfo.contentMimeTypes = ArrayUtils.cloneOrNull(contentMimeTypes); + newEditorInfo.targetInputMethodUser = targetInputMethodUser; return newEditorInfo; }