Skip to content

Conversation

@copybara-service
Copy link

Clear InputMethodManager.sInstance for SDK > P

This fixes a minor case of test pollution when a test interacts with a
TextView.

InputMethodManager.sInstance still gets populated in SDK > P, and it may
contain a reference to a ViewRootImpl (mCurRootView), which causes an Activity
to leak across tests.

This fixes a minor case of test pollution when a test interacts with a
TextView.

InputMethodManager.sInstance still gets populated in SDK > P, and it may
contain a reference to a ViewRootImpl (mCurRootView), which causes an Activity
to leak across tests.

PiperOrigin-RevId: 411153919
@hoisie hoisie merged commit ce6256e into master Nov 28, 2021
@hoisie hoisie deleted the piper_411153919 branch November 28, 2021 02:36
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.

2 participants