mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 13:19:15 +01:00
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:
parent
14a3f805fb
commit
74815f308f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user