Skip to content
Commit 1c88bcee authored by Qasid Ahmad Sadiq's avatar Qasid Ahmad Sadiq
Browse files

AccessibilityRequestPreparer shouldn't crash if the view is released before...

AccessibilityRequestPreparer shouldn't crash if the view is released before the preparer is added or removed.

AccessibilityRequestPreparer holds onto a weak reference of the view.
When it is added or removed, AccessibilityManager uses the views accessibilityId to maintain the lists of requestPreparers.
But, it is completely possible, that a view is released before requestPreparer is removed, or even added, and that will cause bad things.
Instead, store the id on the preparer also.

Change-Id: I5d489c061cd8039d066a81f4a927c1d8185d4f06
Fix: 123047944
Test: CtsAccessibilityServiceTestCases
parent 12288221
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment