summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAhaan Ugale <augale@google.com>2021-05-19 22:21:10 -0700
committerAhaan Ugale <augale@google.com>2021-05-27 09:33:49 -0700
commit02fe90bb4202123bc21489e4f19fb3427b2f5745 (patch)
treeb5c7b7f06d98693ed41f32a5a4642fcdabafc0be /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent4df6d70e4c03b6fca0078f67ad4f46ac373dfe6e (diff)
Translate: Ignore duplicate translations.
This can happen if UiTranslationManager#startTranslation is called more than once for the same view. If the same TranslationResponse is returned, it can simply be ignored. This is preferable to ignoring duplicate ViewTranslationRequests, since the Response is already cached. The TranslationService can cache translations, so duplicate requests isn't an issue. Ideally, the platform intelligence shouldn't issue multiple requests for the same view. Bug: 144292180 Test: atest CtsTranslationTestCases Change-Id: I0bba4a19284a61a9c7a5b79c71b4f42ddffe4e32
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions