Skip to content

Commit 459bbec

Browse files
authored
Merge pull request #5387 from p1gp1g/fix
Put developer settings at the end of the view
2 parents a953547 + ad63de0 commit 459bbec

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/root/PreferencesRootView.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ private fun ColumnScope.GeneralSection(
214214
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.Settings())),
215215
onClick = onOpenAdvancedSettings,
216216
)
217-
if (state.showDeveloperSettings) {
218-
DeveloperPreferencesView(onOpenDeveloperSettings)
219-
}
220217
ListItem(
221218
headlineContent = { Text(stringResource(id = CommonStrings.action_signout)) },
222219
leadingContent = ListItemContent.Icon(IconSource.Vector(CompoundIcons.SignOut())),
@@ -231,6 +228,10 @@ private fun ColumnScope.GeneralSection(
231228
onClick = onDeactivateClick,
232229
)
233230
}
231+
// Put developer settings at the end, so nothing bad happens if the user clicks 8 times to enable the entry
232+
if (state.showDeveloperSettings) {
233+
DeveloperPreferencesView(onOpenDeveloperSettings)
234+
}
234235
}
235236

236237
@Composable
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)