Skip to content

Commit

Permalink
Make ScreenshotLifecycleHost listener set ordered
Browse files Browse the repository at this point in the history
Tests were failing randomly due to HashSet being used to store the observers
  • Loading branch information
DanielJette committed Jun 3, 2024
1 parent 512021c commit 2ff4692
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ interface ScreenshotLifecycleHost {
*/
class ScreenshotLifecycleObserver : ScreenshotLifecycleHost {

private val screenshotLifecycleObservers = HashSet<ScreenshotLifecycle>()
private val screenshotLifecycleObservers = mutableListOf<ScreenshotLifecycle>()

override fun addScreenshotObserver(observer: ScreenshotLifecycle) =
this.screenshotLifecycleObservers.add(observer)
Expand Down

0 comments on commit 2ff4692

Please sign in to comment.