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

Commit 595155cc authored by William Escande's avatar William Escande
Browse files

SystemServer: Fix branch coverage

This allow the branch coverage to move from 96 to 100% on the class

Test: atest ServiceBluetoothRoboTest + check coverage
Bug: 262605980
Change-Id: I1de53f41a846e87cf08cf7bd63654cd8e8018c82
parent 4d2327b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class BluetoothAdapterState {
    private val _uiState = MutableSharedFlow<Int>(1 /* replay only most recent value*/)

    init {
        assert(_uiState.tryEmit(STATE_OFF))
        set(STATE_OFF)
    }

    fun set(s: Int) = runBlocking { _uiState.emit(s) }