diff options
| author | 2023-05-10 14:25:30 +0000 | |
|---|---|---|
| committer | 2023-05-10 14:25:30 +0000 | |
| commit | a65f509f4d5913ccfec8fb21c3a12a573b947c10 (patch) | |
| tree | 491618c63efdc1c7e64c1a1d41ae8f96a3804568 /api/api.go | |
| parent | c51e252589b037f2244fe7d4b760a31c7c87376e (diff) | |
Avoid onDestroy content in test
Even though `Activity.finish` is called by the @Rule before the teardown
happens, `onDestroy` may not be called synchronously and therefore may
happen after mocks have been nulled.
To prevent NPE, do not call `BroadcastDispatcher.unregisterReceiver` in
the test.
Test: atest com.android.systemui.controls
Fixes: 280020640
Change-Id: I992befeac6588116da03ed7869730f5b14b4e091
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions