summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/RenderScript.java
diff options
context:
space:
mode:
authorFeng Cao <fengcao@google.com>2020-06-23 08:17:15 -0700
committerFeng Cao <fengcao@google.com>2020-06-23 19:17:42 -0700
commit17ca1ee84e6740e003dbfbd0ebb21cc2d2579a7d (patch)
tree6150fed067f6a6ee5fa93ee9c0f706736f41b6e6 /rs/java/android/renderscript/RenderScript.java
parent908126d4a7878a9c17f4e06afda57f7a995aadfc (diff)
Release remove inline suggestion views when session destroyed
* Attach to each inline suggestion remote view the user id and session id, which together identify a session. Then when the session is destroyed, we release all the remote views associated with the it. * Worst scenario is that the IME is still showing the UI when the remote view is released due to session destroy, in which case the suggestion will disappear from the IME window. But we also make sure we send an empty response to IME before releasing the views, so it should be bad. Plus when a session is destroyed, interacting with the suggestion UI doesn't do anything, so it's not very helpful to show them. * Also add a dump method to the InlineSuggestionRenderService to help with debugging Test: atest android.autofillservice.cts.inline Bug: 154683107 Change-Id: I488fd9d9af08d0df3ffd3c851f96c567d07eed5a
Diffstat (limited to 'rs/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions