diff --git a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/authenticator/AuthenticatorNavigation.kt b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/authenticator/AuthenticatorNavigation.kt index 79ff7b08c..2a10ccad7 100644 --- a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/authenticator/AuthenticatorNavigation.kt +++ b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/authenticator/AuthenticatorNavigation.kt @@ -68,12 +68,21 @@ fun NavGraphBuilder.authenticatorGraph( .makeText( navController.context, R.string.not_yet_implemented, - Toast.LENGTH_SHORT + Toast.LENGTH_SHORT, ) .show() /*navController.navigateToSyncWithBitwardenScreen()*/ }, - onNavigateToImportScreen = { /*navController.navigateToImportScreen()*/ }, + onNavigateToImportScreen = { + Toast + .makeText( + navController.context, + R.string.not_yet_implemented, + Toast.LENGTH_SHORT, + ) + .show() + /*navController.navigateToImportScreen()*/ + }, onNavigateToSearch = { navController.navigateToSearch() }, ) editItemDestination( diff --git a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarNavigation.kt b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarNavigation.kt index a19f17117..eddae7992 100644 --- a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarNavigation.kt +++ b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarNavigation.kt @@ -5,6 +5,9 @@ import com.x8bit.bitwarden.authenticator.ui.platform.base.util.composableWithSta const val AUTHENTICATOR_NAV_BAR_ROUTE: String = "AuthenticatorNavBarRoute" +/** + * Add the authenticator nav bar to the nav graph. + */ fun NavGraphBuilder.authenticatorNavBarDestination( onNavigateToSearch: () -> Unit, onNavigateToQrCodeScanner: () -> Unit, diff --git a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarScreen.kt b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarScreen.kt index 2f233900e..4a4e29904 100644 --- a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarScreen.kt +++ b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/authenticator/feature/navbar/AuthenticatorNavBarScreen.kt @@ -57,6 +57,9 @@ import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import kotlinx.parcelize.Parcelize +/** + * Top level composable for the authenticator screens. + */ @Composable fun AuthenticatorNavBarScreen( viewModel: AuthenticatorNavBarViewModel = hiltViewModel(), diff --git a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/platform/feature/rootnav/RootNavScreen.kt b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/platform/feature/rootnav/RootNavScreen.kt index 29fd4d93c..fc49e743d 100644 --- a/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/platform/feature/rootnav/RootNavScreen.kt +++ b/app/src/main/kotlin/com/x8bit/bitwarden/authenticator/ui/platform/feature/rootnav/RootNavScreen.kt @@ -26,6 +26,9 @@ import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import java.util.concurrent.atomic.AtomicReference +/** + * Controls the root level [NavHost] for the app. + */ @Composable fun RootNavScreen( viewModel: RootNavViewModel = hiltViewModel(),