commit | ba966d439f64fa2ea27953b6ca65f7c74842cb49 | [log] [tgz] |
---|---|---|
author | Valentin Iftime <valiiftime@google.com> | Wed Sep 06 18:14:51 2023 +0200 |
committer | Valentin Iftime <valiiftime@google.com> | Wed Sep 06 18:14:51 2023 +0200 |
tree | 7c6f1b2756385ca648f79b29754e4ed03fc586e7 | |
parent | b06a59959cc9aec78d33206f9f481b1496d696e8 [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