mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-30 04:44:27 +01:00
Fix new Toolbar
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package no.nordicsemi.android.uart.repository
|
||||
|
||||
import android.bluetooth.BluetoothDevice
|
||||
import android.content.Context
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
|
||||
@@ -51,7 +51,7 @@ fun UARTScreen() {
|
||||
@Composable
|
||||
private fun AppBar(state: UARTViewState, navigateUp: () -> Unit, onEvent: (UARTViewEvent) -> Unit) {
|
||||
val toolbarName = (state.uartManagerState as? WorkingState)?.let {
|
||||
(it.result as? SuccessResult<UARTData>)?.deviceName()
|
||||
(it.result as? DeviceHolder)?.deviceName()
|
||||
}
|
||||
|
||||
if (toolbarName == null) {
|
||||
|
||||
Reference in New Issue
Block a user