mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-20 15:14:25 +01:00
Fix new Toolbar
This commit is contained in:
@@ -51,7 +51,7 @@ fun BPSScreen() {
|
||||
@Composable
|
||||
private fun AppBar(state: BPSViewState, navigateUp: () -> Unit, viewModel: BPSViewModel) {
|
||||
val toolbarName = (state as? WorkingState)?.let {
|
||||
(it.result as? SuccessResult<BPSData>)?.deviceName()
|
||||
(it.result as? DeviceHolder)?.deviceName()
|
||||
}
|
||||
|
||||
if (toolbarName == null) {
|
||||
|
||||
Reference in New Issue
Block a user