diff options
| author | 2024-03-20 09:42:18 +0100 | |
|---|---|---|
| committer | 2024-04-09 18:08:09 +0200 | |
| commit | fb220a6f2fb8dfdc57dc97919689b2f87b4d6b3a (patch) | |
| tree | a24f4030fb5b23a7b7ec6851d7adf600a4ffef47 /libs/input/PointerControllerContext.cpp | |
| parent | 7ca67e0fc015cf060a76ff120ba2a35cc251ce5f (diff) | |
Remove WeakReference for Toast next view
This avoids the view being GCed in low memory situations.
Only the @Deprecated setView API uses mNextViev so this applies to
a limited usage base.
In some stress-test situations, there may be false reports of memory leaks (LeakCanary).
The root-cause is that the NMS reference to ITransientNotification/TN is not cleaned up immediately after
the binder call enqueueToast returns - in the case where the maximum number of toasts has been queued for a
package.
New unit tests for Toast: android.widget.ToastTest
Flag: android.widget.flags.toast_no_weakref
Test: atest android.widget.ToastTest
Test: atest ToastWindowTest ToastPresenterTest ToastUITest ToastTest NotificationManagerServiceTest
Bug: 321732224
Change-Id: I4aea918911731fdd2ba7c46009a518d30b5caa37
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
0 files changed, 0 insertions, 0 deletions