Add a shortcut to navigate to the notification settings in case of error.
This commit is contained in:
parent
e31fc17c9a
commit
5180ce388c
6 changed files with 37 additions and 3 deletions
|
|
@ -32,6 +32,9 @@ interface PreferencesEntryPoint : FeatureEntryPoint {
|
|||
|
||||
@Parcelize
|
||||
data object NotificationSettings : InitialTarget
|
||||
|
||||
@Parcelize
|
||||
data object NotificationTroubleshoot : InitialTarget
|
||||
}
|
||||
|
||||
data class Params(val initialElement: InitialTarget) : NodeInputs
|
||||
|
|
|
|||
|
|
@ -51,4 +51,5 @@ class DefaultPreferencesEntryPoint @Inject constructor() : PreferencesEntryPoint
|
|||
internal fun PreferencesEntryPoint.InitialTarget.toNavTarget() = when (this) {
|
||||
is PreferencesEntryPoint.InitialTarget.Root -> PreferencesFlowNode.NavTarget.Root
|
||||
is PreferencesEntryPoint.InitialTarget.NotificationSettings -> PreferencesFlowNode.NavTarget.NotificationSettings
|
||||
PreferencesEntryPoint.InitialTarget.NotificationTroubleshoot -> PreferencesFlowNode.NavTarget.TroubleshootNotifications
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue