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) }
val steps = remember {
listOf(
PrivacyPolicyStep(),
ThemeStep(),
StorageStep(),
PermissionStep(),
@ -42,7 +43,7 @@ fun OnboardingScreen(
}
val isLastStep = currentStep == steps.lastIndex
BackHandler(enabled = currentStep != 0, onBack = { currentStep-- })
BackHandler(enabled = currentStep != 1, onBack = { currentStep-- })
InfoScreen(
icon = Icons.Outlined.RocketLaunch,