diff options
| author | Mark Punzalan <markpun@google.com> | 2022-04-27 22:39:54 +0000 |
|---|---|---|
| committer | Mark Punzalan <markpun@google.com> | 2022-05-05 05:31:38 +0000 |
| commit | c35960c314af0db1d3cd8a8e70dd8393184045b2 (patch) | |
| tree | 7dc0b4fb75512f560ecf5aedd47870f3d84b8e89 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 100004b0ca9ba19de39987bb36eabd1caf236f0a (diff) | |
Reset translation state when views disappear.
Views may be re-used (e.g., as in ListView and RecyclerView) so we need
to ensure they don't have the translated text when they appear again.
RecyclerView seems to recycle translated views even when
`hasTransientState() == true` which is the case when views are
translated. This should be fixed separately.
Bug: 223700458
Test: atest CtsTranslationTestCases
Test: atest CtsContentCaptureServiceTestCases
Test: atest CtsAutoFillServiceTestCases
Test: manual - New messages are translated correctly even if views are
re-used. Messages are translated correctly when scrolled onto the screen
and stay translated while on-screen.
Change-Id: I97cc418a801c006c857e971110ab811ad383343e
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions
