Stop showing divider when analytics is not included (mihonapp/mihon#1778)
(cherry picked from commit 8b28a9bceeb43330d9b42cf2b9a98a072cf9aa19)
This commit is contained in:
parent
35310c70fe
commit
c5ca42426a
1 changed files with 2 additions and 2 deletions
|
|
@ -178,13 +178,13 @@ internal class PermissionStep : OnboardingStep {
|
|||
}
|
||||
// KMK <--
|
||||
|
||||
if (!analyticsIncluded) return@Column
|
||||
|
||||
HorizontalDivider(
|
||||
modifier = Modifier.padding(vertical = 8.dp, horizontal = 16.dp),
|
||||
color = MaterialTheme.colorScheme.onPrimaryContainer,
|
||||
)
|
||||
|
||||
if (!analyticsIncluded) return@Column
|
||||
|
||||
val crashlyticsPref = privacyPreferences.crashlytics()
|
||||
val crashlytics by crashlyticsPref.collectAsState()
|
||||
PermissionSwitch(
|
||||
|
|
|
|||
Loading…
Reference in a new issue