Skip to content

Commit abe5267

Browse files
SanderKondratjevNortalaarmam
authored andcommitted
NFC-50 Start app from WebEID screen if launched via web-eid-mobile URI
1 parent 8e82c53 commit abe5267

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/src/main/kotlin/ee/ria/DigiDoc/RIADigiDocAppNavigation.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ fun RIADigiDocAppScreen(externalFileUris: List<Uri>, webEidUri: Uri? = null) {
8787

8888
sharedContainerViewModel.setExternalFileUris(externalFileUris)
8989

90-
var startDestination = Route.Init.route
91-
if (sharedSettingsViewModel.dataStore.getLocale() != null) {
92-
startDestination = Route.Home.route
90+
val startDestination = when {
91+
webEidUri != null -> Route.WebEidScreen.route
92+
sharedSettingsViewModel.dataStore.getLocale() != null -> Route.Home.route
93+
else -> Route.Init.route
9394
}
9495

9596
NavHost(

0 commit comments

Comments
 (0)