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
Loading
Please register or sign in to comment