refactor: disable going back to privacy policy.

Once it's accepted they have to uninstall the app if they change their mind.

Signed-off-by: KaiserBh <kaiserbh@proton.me>
This commit is contained in:
KaiserBh 2024-01-12 16:22:09 +11:00
parent 14a3f805fb
commit 74815f308f
No known key found for this signature in database
GPG Key ID: 14D73B142042BBA9

View File

@ -34,6 +34,7 @@ fun OnboardingScreen(
var currentStep by rememberSaveable { mutableIntStateOf(0) } var currentStep by rememberSaveable { mutableIntStateOf(0) }
val steps = remember { val steps = remember {
listOf( listOf(
PrivacyPolicyStep(),
ThemeStep(), ThemeStep(),
StorageStep(), StorageStep(),
PermissionStep(), PermissionStep(),
@ -42,7 +43,7 @@ fun OnboardingScreen(
} }
val isLastStep = currentStep == steps.lastIndex val isLastStep = currentStep == steps.lastIndex
BackHandler(enabled = currentStep != 0, onBack = { currentStep-- }) BackHandler(enabled = currentStep != 1, onBack = { currentStep-- })
InfoScreen( InfoScreen(
icon = Icons.Outlined.RocketLaunch, icon = Icons.Outlined.RocketLaunch,