summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2021-07-30 21:19:14 +0800
committerJoanne Chung <joannechung@google.com>2021-08-05 07:07:18 +0000
commitfd19460694f050487f4f4400409cb9cd98fdfddf (patch)
tree943e918f1d49ef59ed29d8511980e3c09ff23615 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent5528d08a4f77aeebdebacc55b6c3a2eec685d323 (diff)
Fix the Translator references are gone when receiving response.
There are some issues TranslationService already sent the response but the View onResponse doesn't be called. The reference seems to be gone. If we don't fix the problem, we will missing the ui translation even the service already give us the response. To fix the problem, we change it to strong reference. The change is low risk, the only risk is if TranslationService doesn not release the reference to the callback properly causing a memory leak for apps but this can recovered by app update. Bug: 194973014 Test: atest CtsTranslationTestCases Test: The translation for chat apps work fine. The memory is decreased after receiving the responses for a while. Change-Id: Ib3956b2250c54a29acf9f7d51f51e8191fe8aba2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions