File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/src/main/java/to/bitkit/ui/settings Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ fun SettingsScreen(
6565 onSupportClick = { navController.navigate(Routes .Support ) },
6666 onAboutClick = { navController.navigateToAboutSettings() },
6767 onDevClick = { navController.navigateToDevSettings() },
68+ onBackClick = { navController.popBackStack() },
6869 onCogTap = {
6970 haptic.performHapticFeedback(HapticFeedbackType .Confirm )
7071 enableDevModeTapCount = enableDevModeTapCount + 1
@@ -100,11 +101,12 @@ fun SettingsScreenContent(
100101 onAboutClick : () -> Unit ,
101102 onDevClick : () -> Unit ,
102103 onCogTap : () -> Unit ,
104+ onBackClick : () -> Unit ,
103105) {
104106 ScreenColumn {
105107 AppTopBar (
106108 titleText = stringResource(R .string.settings__settings),
107- onBackClick = null ,
109+ onBackClick = onBackClick ,
108110 actions = { DrawerNavIcon () },
109111 )
110112 Column (
@@ -186,6 +188,7 @@ private fun Preview() {
186188 onAboutClick = {},
187189 onDevClick = {},
188190 onCogTap = {},
191+ onBackClick = {},
189192 )
190193 }
191194}
You can’t perform that action at this time.
0 commit comments