commit | f2001b43d7e7568369c8e9eae0d730fe1ec931ed | [log] [tgz] |
---|---|---|
author | Ahaan Ugale <augale@google.com> | Fri Apr 05 23:46:42 2024 +0000 |
committer | Ahaan Ugale <augale@google.com> | Fri Apr 05 23:46:42 2024 +0000 |
tree | 5ba0a8d571eb2de52d96be3c97902f5b474b1e34 | |
parent | a7136d36a0c1653fdd7469ab48e86dfeb4d2d441 [diff] |
Fix deadlock in showing Toast for sensitive content Toast#show calls into NotificationManagerService which then acquires a lock there. WMS is at a lower layer of the system and shouldn't be calling into a higher level system with a lock held. This cl fixes the layering inversion. Bug: 323580163 Test: atest CtsSensitiveContentProtectionTestCases:android.sensitivecontentprotection.cts.ViewSensitiveContentTest --iterations Change-Id: I4e829183b7f29ad2ad3231f4ea91937b8d9e2c6b