commit | 86de59f7b8009a419dd505fa50ad6d0e616edfdd | [log] [tgz] |
---|---|---|
author | Valentin Iftime <valiiftime@google.com> | Wed Sep 06 18:14:51 2023 +0200 |
committer | Iavor-Valentin Iftime <valiiftime@google.com> | Tue Sep 12 15:12:16 2023 +0000 |
tree | 5b65b5e0c5ad6441e70d0065a98c5ae9bbb8ce95 | |
parent | bc7b03159b6d776c14919ef1d80194da6e340fa4 [diff] |
Fix Toast leak in AccessibilityManager AccessibilityManager registers a client object in the constructor. So only create a AccessibilityManager when trying to send an accessibility event, as there may be multiple ToastPresenters initialized without being used: from the client app and SystemUi. Test: atest WindowUntrustedTouchTest atest ToastWindowTest atest ToastPresenterTest atest ToastUITest Bug: 298593662 Change-Id: Ie8a4440338d25d521eb036dc4531c820d5a35267