mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-21 08:24:22 +01:00
Add connecting view to profiles
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
package no.nordicsemi.android.nrftoolbox
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
|
||||
@@ -2,7 +2,6 @@ package no.nordicsemi.android.nrftoolbox
|
||||
|
||||
import android.app.Activity
|
||||
import android.os.ParcelUuid
|
||||
import android.util.Log
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
@@ -46,15 +45,15 @@ internal fun HomeScreen() {
|
||||
navController = navController,
|
||||
startDestination = NavigationId.HOME.id
|
||||
) {
|
||||
composable(NavigationId.HOME.id) {
|
||||
HomeView(viewModel)
|
||||
}
|
||||
composable(NavigationId.SCANNER.id) {
|
||||
val profile = viewModel.profile!!
|
||||
FindDeviceScreen(ParcelUuid(profile.uuid)) {
|
||||
viewModel.onScannerFlowResult(it)
|
||||
}
|
||||
}
|
||||
composable(NavigationId.HOME.id) {
|
||||
HomeView(viewModel)
|
||||
}
|
||||
composable(NavigationId.CSC.id) {
|
||||
CSCScreen(navigateUp)
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
package no.nordicsemi.android.nrftoolbox
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
|
||||
import org.junit.Assert.*
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user