Skip to content

Commit

Permalink
Fix edit account server settings uri
Browse files Browse the repository at this point in the history
  • Loading branch information
wmontwe committed Oct 8, 2024
1 parent 053756b commit 029f6fb
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package app.k9mail.feature.launcher
import android.content.Intent
import android.net.Uri
import app.k9mail.core.ui.compose.common.navigation.toDeepLinkUri
import app.k9mail.feature.account.edit.navigation.NAVIGATION_ROUTE_ACCOUNT_EDIT_SERVER_SETTINGS_INCOMING
import app.k9mail.feature.account.edit.navigation.NAVIGATION_ROUTE_ACCOUNT_EDIT_SERVER_SETTINGS_OUTGOING
import app.k9mail.feature.account.edit.navigation.withAccountUuid
import app.k9mail.feature.account.setup.navigation.NAVIGATION_ROUTE_ACCOUNT_SETUP
import app.k9mail.feature.funding.api.FundingRoute
Expand All @@ -22,11 +24,13 @@ sealed class FeatureLauncherTarget(
)

data class AccountEditIncomingSettings(val accountUuid: String) : FeatureLauncherTarget(
deepLinkUri = NAVIGATION_ROUTE_ACCOUNT_SETUP.withAccountUuid(accountUuid).toDeepLinkUri(),
deepLinkUri = NAVIGATION_ROUTE_ACCOUNT_EDIT_SERVER_SETTINGS_INCOMING
.withAccountUuid(accountUuid).toDeepLinkUri(),
)

data class AccountEditOutgoingSettings(val accountUuid: String) : FeatureLauncherTarget(
deepLinkUri = NAVIGATION_ROUTE_ACCOUNT_SETUP.withAccountUuid(accountUuid).toDeepLinkUri(),
deepLinkUri = NAVIGATION_ROUTE_ACCOUNT_EDIT_SERVER_SETTINGS_OUTGOING
.withAccountUuid(accountUuid).toDeepLinkUri(),
)

data object Funding : FeatureLauncherTarget(
Expand Down

0 comments on commit 029f6fb

Please sign in to comment.