mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-01 18:34:13 +01:00
Stop showing divider when analytics is not included (#1778)
This commit is contained in:
parent
79e25451bd
commit
8b28a9bcee
@ -118,13 +118,13 @@ internal class PermissionStep : OnboardingStep {
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!analyticsIncluded) return@Column
|
||||||
|
|
||||||
HorizontalDivider(
|
HorizontalDivider(
|
||||||
modifier = Modifier.padding(vertical = 8.dp, horizontal = 16.dp),
|
modifier = Modifier.padding(vertical = 8.dp, horizontal = 16.dp),
|
||||||
color = MaterialTheme.colorScheme.onPrimaryContainer,
|
color = MaterialTheme.colorScheme.onPrimaryContainer,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!analyticsIncluded) return@Column
|
|
||||||
|
|
||||||
val crashlyticsPref = privacyPreferences.crashlytics()
|
val crashlyticsPref = privacyPreferences.crashlytics()
|
||||||
val crashlytics by crashlyticsPref.collectAsState()
|
val crashlytics by crashlyticsPref.collectAsState()
|
||||||
PermissionSwitch(
|
PermissionSwitch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user