diff options
author | Daniel <danieljkim@google.com> | 2023-08-03 06:09:51 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-20 20:02:44 +0000 |
commit | f3385d197075d10659b388982b3d59c73adaa967 (patch) | |
tree | 8940248681bea125a62f5695576489956b3da5ae /packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java | |
parent | 7ecc8214eedf0e978314bfd1d005f1ccb1651a6c (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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e42d05e3d01f4c3b8aa7bce29086cd968970b4ec)
Merged-In: I1fd97d9d6fdc569d14529347fcb85da409c3c1ff
Change-Id: I1fd97d9d6fdc569d14529347fcb85da409c3c1ff
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPatternViewController.java')
0 files changed, 0 insertions, 0 deletions