File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/src/main/java/to/bitkit/ui Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1356,8 +1356,8 @@ fun NavController.navigateToWidgetsSettings() = navigate(
13561356 route = Routes .WidgetsSettings ,
13571357)
13581358
1359- fun NavController.navigateToQuickPaySettings () = navigate(
1360- route = Routes .QuickPaySettings ,
1359+ fun NavController.navigateToQuickPaySettings (hasSeenIntro : Boolean = true ) = navigate(
1360+ route = if (hasSeenIntro) Routes .QuickPaySettings else Routes . QuickPayIntro ,
13611361)
13621362
13631363fun NavController.navigateToTagsSettings () = navigate(
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ fun GeneralSettingsScreen(
4141 val currencies = LocalCurrencies .current
4242 val defaultTransactionSpeed by settings.defaultTransactionSpeed.collectAsStateWithLifecycle()
4343 val lastUsedTags by settings.lastUsedTags.collectAsStateWithLifecycle()
44+ val quickPayIntroSeen by settings.quickPayIntroSeen.collectAsStateWithLifecycle()
4445
4546 GeneralSettingsContent (
4647 selectedCurrency = currencies.selectedCurrency,
@@ -53,7 +54,7 @@ fun GeneralSettingsScreen(
5354 onDefaultUnitClick = { navController.navigateToDefaultUnitSettings() },
5455 onTransactionSpeedClick = { navController.navigateToTransactionSpeedSettings() },
5556 onWidgetsClick = { navController.navigateToWidgetsSettings() },
56- onQuickPayClick = { navController.navigateToQuickPaySettings() },
57+ onQuickPayClick = { navController.navigateToQuickPaySettings(quickPayIntroSeen ) },
5758 onTagsClick = { navController.navigateToTagsSettings() },
5859 )
5960}
You can’t perform that action at this time.
0 commit comments