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

Commit 8cdb5cb2 authored by Daniel Norman's avatar Daniel Norman
Browse files

fix(edt): Avoid race by using one layout change listener per View

This ViewModel was calling addOnLayoutChangeListener twice for each
View. This might be a source of race condition issues if the call
happens on different threads.

This change consolidates logic so that each View in this class only
adds one listener.

Bug: 428789323
Test: StatusBarRegionSamplingViewModelTest
Flag: EXEMPT bugfix refactoring in flagged code
Change-Id: Ia8901d3d755c18c3e1c6d355dc8263c944e7e8c8
parent a39bea6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment