diff options
author | Ahaan Ugale <augale@google.com> | 2021-06-09 13:53:38 -0700 |
---|---|---|
committer | Ahaan Ugale <augale@google.com> | 2021-06-09 13:53:38 -0700 |
commit | f922300a2d5523b12417b3b48ee790c7d13dd2f1 (patch) | |
tree | 1fa2f3e12521aff58f7afcbcb6c0eaf7a149bee7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 33f8e11606708a9724d5daaa486a0a5976e19482 (diff) |
Clear the ViewTranslationResponse on finishing UiTranslation.
Stored state should be cleared here.
This fixes a bug where the views cannot be re-translated after
UiTranslationManager#finishTranslation was called. Some of the state was
cleared, so the translations cannot be re-shown. And that state cannot
be recreated because we find the same ViewTranslationResponse stored and
do not recreate the other state.
Fix: 189892928
Test: manual - translate an app, go to the home screen (triggers
finish), go back to the app and re-translate
Test: atest CtsTranslationTestCases
Change-Id: Ic81fbce7ee09eb72352071c8bdd94a2731826009
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions