summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2021-09-22 16:36:47 +0800
committerJoanne Chung <joannechung@google.com>2021-10-26 03:54:45 +0000
commit64f6b7605138711af789281aa14b77657415c29b (patch)
tree2910030208e8c3949b4521272c1d0d74bc590fd0 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent8316f682ec800a48010580d3cb6dd4b80eb15d76 (diff)
Fix showing translated text if user switch back to original lauguage quickly.
Fixes the bug if the translation service spending more time to deal with the translation but user switches back to original lauguage quickly, we will show translated text. When the response back, if the translation state is finished, we drop the result. If the state is pause, we update the response but we do not call onShowTranslation to translated text. Bug: 200251777 Test: atest CtsTranslationTestCases Test: manual. Try to send request late and switch back original language, it keeps original. Then it works fine when switch between the source and target languages. Change-Id: I780456f091884c61e5801ead3ff021531fee87b4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions