From 74815f308fa939b44f842f76a3a555b8e12f4334 Mon Sep 17 00:00:00 2001 From: KaiserBh Date: Fri, 12 Jan 2024 16:22:09 +1100 Subject: [PATCH] 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 --- .../eu/kanade/presentation/more/onboarding/OnboardingScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/more/onboarding/OnboardingScreen.kt b/app/src/main/java/eu/kanade/presentation/more/onboarding/OnboardingScreen.kt index c5fd8c2faf..c8af6cc801 100644 --- a/app/src/main/java/eu/kanade/presentation/more/onboarding/OnboardingScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/onboarding/OnboardingScreen.kt @@ -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,