commit | 7672bbc91578389c46bdfbd679166698f4cf24d7 | [log] [tgz] |
---|---|---|
author | Joanne Chung <joannechung@google.com> | Sun Sep 19 23:06:02 2021 +0800 |
committer | Joanne Chung <joannechung@google.com> | Sun Sep 19 15:16:57 2021 +0000 |
tree | 92603fc18a7c6308f1c369beb716d36ebdedbde1 | |
parent | 98fa7d142f9dabf78bbe3c180ecee02a0f21525b [diff] |
Fix the existing translation doesn't update for new translated result. It is possible the existing text is changed that triggers a new translation. We cache the translation response when onShowTransltion is called. We should keep the translation response is updated if this is a new translation result. Bug: 200232741 Test: atest CtsTranslationTestCases Test: manual. The issue app works fine. Change-Id: Iaf7423cd35d4484e33de84e478256b77a000f390