summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorSteve Elliott <steell@google.com>2022-02-15 00:18:13 -0500
committerSteve Elliott <steell@google.com>2022-02-15 00:18:13 -0500
commit2a68270c76def0b635bd1583e9c1817d09dff969 (patch)
tree0526f9a22864521476180a0e4bf95bbe05cdf689 /core/java/android/inputmethodservice/InputMethodService.java
parent497fad03ee7149264452cd79af7788f7486e29f4 (diff)
Defer MessagingGroup#recycle until bind completes
There is a "race condition" where a MessagingGroup is recycled while the contents of that group are being used elsewhere in the ConversationLayout, namely in the "image message container" used to show the most recent image message in the collapsed state. This state isn't cleared until later in the bind() process, which unfortunately depends on the groups being updated. For that reason, we defer all synchronous calls to recycle() until the end of bind(), which will ensure that the old groups are still around as long as necessary. Fixes: 212689920 Test: manual Change-Id: Idef815d54690544615512bd2bd1006f172403e18
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions