Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5f165ec3 authored by Bryce Lee's avatar Bryce Lee
Browse files

Do not consider implicit lifecycle observers.

JavaAdapter#collectFlow creates a lifecycle observer for the coroutine
scope that is removed upon the flow close. This happens after destroy,
causing tests verifying its removal at this stage to fail.

This changelist filters out the associated observer from the list of
observers whose removal is tracked.

Test: atest TouchMonitorTest#testDestroy_cleansUpLifecycleObserver
Flag: com.android.systemui.ambient_touch_monitor_listen_to_display_changes
Fixes: 350076145
Change-Id: I13805f4fafe77ba4bf073ead9f2dbb6fa6008aa0
parent 0b8d6213
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment