summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2021-12-10 12:45:19 +0800
committerJoanne Chung <joannechung@google.com>2021-12-10 05:00:00 +0000
commita5d4f094e82ccc4d803322072ab79d04f6c743a9 (patch)
treebf47a42ae9a9628b2f71c67afb2c4460a935b272 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentecc936a08e0ff1bb6077c12f957b625c1cd594db (diff)
Fix translation animation flash for the same translation
The system received the same multiple translation responses in a very short time. We use a isShowingTranslation flag to determine if the duplicated responses to call onShowTranslation. However the isShowingTransation flag is set in a post runnable, this may cause the system allow the duplicate responses can call onShowTranslation because the isShowingTransaltion isn't set true yet. Use multiple flags isShowingTranslation and a new isRunningAnimation to check if the same translation response should skip to call onShowTranslation. Bug: 207457172 Test: manual Test: atest CtsTranslationTestCases Change-Id: I7003b7f49fc0a8ce2e909228bcb89acedee6d3d0
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions