Skip to content

Commit 5e5602f

Browse files
committed
fix: remove widgets intro navigation
1 parent 645b70b commit 5e5602f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/src/main/java/to/bitkit/ui/ContentView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,8 +1348,8 @@ fun NavController.navigateToCustomFeeSettings() = navigate(
13481348
route = Routes.CustomFeeSettings,
13491349
)
13501350

1351-
fun NavController.navigateToWidgetsSettings(hasSeenIntro: Boolean = true) = navigate(
1352-
route = if (hasSeenIntro) Routes.WidgetsSettings else Routes.WidgetsIntro,
1351+
fun NavController.navigateToWidgetsSettings() = navigate(
1352+
route = Routes.WidgetsSettings,
13531353
)
13541354

13551355
fun NavController.navigateToQuickPaySettings(hasSeenIntro: Boolean = true) = navigate(

app/src/main/java/to/bitkit/ui/settings/general/GeneralSettingsScreen.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ fun GeneralSettingsScreen(
4242
val defaultTransactionSpeed by settings.defaultTransactionSpeed.collectAsStateWithLifecycle()
4343
val lastUsedTags by settings.lastUsedTags.collectAsStateWithLifecycle()
4444
val quickPayIntroSeen by settings.quickPayIntroSeen.collectAsStateWithLifecycle()
45-
val widgetsIntroSeen by settings.hasSeenWidgetsIntro.collectAsStateWithLifecycle()
46-
4745

4846
GeneralSettingsContent(
4947
selectedCurrency = currencies.selectedCurrency,
@@ -55,7 +53,7 @@ fun GeneralSettingsScreen(
5553
onLocalCurrencyClick = { navController.navigateToLocalCurrencySettings() },
5654
onDefaultUnitClick = { navController.navigateToDefaultUnitSettings() },
5755
onTransactionSpeedClick = { navController.navigateToTransactionSpeedSettings() },
58-
onWidgetsClick = { navController.navigateToWidgetsSettings(widgetsIntroSeen) },
56+
onWidgetsClick = { navController.navigateToWidgetsSettings() },
5957
onQuickPayClick = { navController.navigateToQuickPaySettings(quickPayIntroSeen) },
6058
onTagsClick = { navController.navigateToTagsSettings() },
6159
)

0 commit comments

Comments
 (0)