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
This commit is contained in:
Nikolas Havrikov
2022-06-16 17:22:25 +02:00
parent 1a68d9c04d
commit a8d21f00c2

View File

@@ -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;
}