-
Notifications
You must be signed in to change notification settings - Fork 109
Refine price alert flow #6262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine price alert flow #6262
Changes from all commits
a3586a8
c187224
cf2db0c
ff878f1
8fc1a12
3e99318
5082214
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -53,7 +53,7 @@ class AlertFragment : BaseFragment(), MultiSelectCoinListBottomSheetDialogFragme | |||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| enum class AlertDestination { | ||||||||||||||||||||||
| Alert, All, Edit, | ||||||||||||||||||||||
| All, Edit, | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| private val alertViewModel by viewModels<AlertViewModel>() | ||||||||||||||||||||||
|
|
@@ -69,6 +69,7 @@ class AlertFragment : BaseFragment(), MultiSelectCoinListBottomSheetDialogFragme | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||||||||||||||||||||||
| super.onViewCreated(view, savedInstanceState) | ||||||||||||||||||||||
| coins = setOf(coin) | ||||||||||||||||||||||
|
Comment on lines
70
to
+72
|
||||||||||||||||||||||
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| super.onViewCreated(view, savedInstanceState) | |
| coins = setOf(coin) | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| coins = setOf(coin) | |
| } | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| super.onViewCreated(view, savedInstanceState) |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the
Alertdestination from the NavHost can crash state restoration (e.g., process recreation or app update) if a previously-saved back stack contains the old "Alert" route; Navigation will try to restore a destination that no longer exists. Consider keeping anAlertroute that redirects toAll(or keeping the enum value + composable) for backward compatibility, at least for one release.