summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Daniel <danieljkim@google.com> 2023-08-03 06:09:51 +0000
committer Daniel Kim <danieljkim@google.com> 2023-09-18 20:24:50 +0000
commit6e22a288ea893f7b2fc55645b99f4954698d1f11 (patch)
tree08066a40dd0780b2ad308872f4cc6c25a36c5a7d /libs/androidfw/ConfigDescription.cpp
parent901956663dac74ba7ade678f7796b6d6043b4fba (diff)
Strips spans from AssistStructure text
When a new view becomes visible on the screen, the view notifies AutofillManager about its visibility. AutofillManager then requests the activity to compile an AssistStructure object which will contain the view hierarchy of the activity as well as texts contained inside all the views. If there are Span text fields that contain custom implementation of ClickableSpan, these spans are also copied over during the construction of the AssistStructure. By keeping the references to the ClickableSpan, it causes memory leak when the AssistStructure object outlives the activity. Test: atest CtsAutoFillServiceTestCases, atest CtsAssistTestCases, atest android.widget.cts.TextViewTest Bug: 146100180 Change-Id: I1fd97d9d6fdc569d14529347fcb85da409c3c1ff (cherry picked from commit e42d05e3d01f4c3b8aa7bce29086cd968970b4ec)
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions