Put developer settings at the end of the view
It used to be before "Sign out" which once the developer setting was enabled went over the build version. So clicking 8 times on the build version instead of 7 to enable dev settings was signing out the user.
This commit is contained in:
parent
0ed32a9227
commit
efa3a2fc3a
1 changed files with 4 additions and 3 deletions
|
|
@ -214,9 +214,6 @@ private fun ColumnScope.GeneralSection(
|
||||||
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Settings())),
|
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Settings())),
|
||||||
onClick = onOpenAdvancedSettings,
|
onClick = onOpenAdvancedSettings,
|
||||||
)
|
)
|
||||||
if (state.showDeveloperSettings) {
|
|
||||||
DeveloperPreferencesView(onOpenDeveloperSettings)
|
|
||||||
}
|
|
||||||
ListItem(
|
ListItem(
|
||||||
headlineContent = { Text(stringResource(id = CommonStrings.action_signout)) },
|
headlineContent = { Text(stringResource(id = CommonStrings.action_signout)) },
|
||||||
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.SignOut())),
|
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.SignOut())),
|
||||||
|
|
@ -231,6 +228,10 @@ private fun ColumnScope.GeneralSection(
|
||||||
onClick = onDeactivateClick,
|
onClick = onDeactivateClick,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
// Put developer settings at the end, so nothing bad happens if the user clicks 8 times to enable the entry
|
||||||
|
if (state.showDeveloperSettings) {
|
||||||
|
DeveloperPreferencesView(onOpenDeveloperSettings)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue