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
Loading
Please register or sign in to comment