Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Android 13 in TypeText.kt so that tests with text input can work #1426

Closed
wants to merge 2 commits into from

Conversation

Chog0
Copy link

@Chog0 Chog0 commented Jan 23, 2023

This fix eliminates this issue #1425

…ext.kt so it could be found via reflection. This change is required for Android 13.
@@ -75,7 +75,7 @@ internal class TypeText(private val stringToBeTyped: String) : ViewAction {
ApplicationProvider.getApplicationContext<Application>()
.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
)
.getFieldByReflectionWithAnyField("mIInputContext")
.getFieldByReflectionWithAnyField("mFallbackInputConnection")
Copy link
Contributor

@dsvoronin dsvoronin Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, it should be under "SDK check if", right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Chog0 What do you think could you make changes with SDK check?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will do that and ask you for review when it's ready.
Thanks for pointing this out, guys!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge and create a release

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Released in 2023.2

@Chog0 Chog0 requested review from dsvoronin and sboishtyan and removed request for dsvoronin and sboishtyan January 27, 2023 12:19
@sboishtyan sboishtyan closed this Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants