mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Always show dividers.
This commit is contained in:
+4
-5
@@ -58,7 +58,6 @@ fun DeveloperSettingsView(
|
|||||||
// Note: this is OK to hardcode strings in this debug screen.
|
// Note: this is OK to hardcode strings in this debug screen.
|
||||||
PreferenceCategory(
|
PreferenceCategory(
|
||||||
title = "Feature flags",
|
title = "Feature flags",
|
||||||
showTopDivider = true,
|
|
||||||
) {
|
) {
|
||||||
FeatureListContent(state)
|
FeatureListContent(state)
|
||||||
}
|
}
|
||||||
@@ -104,7 +103,7 @@ fun DeveloperSettingsView(
|
|||||||
state = state.rageshakeState,
|
state = state.rageshakeState,
|
||||||
)
|
)
|
||||||
if (state.isEnterpriseBuild) {
|
if (state.isEnterpriseBuild) {
|
||||||
PreferenceCategory(title = "Theme", showTopDivider = false) {
|
PreferenceCategory(title = "Theme") {
|
||||||
ListItem(
|
ListItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Text("Change brand color")
|
Text("Change brand color")
|
||||||
@@ -115,7 +114,7 @@ fun DeveloperSettingsView(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PreferenceCategory(title = "Crash", showTopDivider = false) {
|
PreferenceCategory(title = "Crash") {
|
||||||
ListItem(
|
ListItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Text("Crash the app 💥")
|
Text("Crash the app 💥")
|
||||||
@@ -124,7 +123,7 @@ fun DeveloperSettingsView(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
val cache = state.cacheSize
|
val cache = state.cacheSize
|
||||||
PreferenceCategory(title = "Cache", showTopDivider = false) {
|
PreferenceCategory(title = "Cache") {
|
||||||
ListItem(
|
ListItem(
|
||||||
headlineContent = {
|
headlineContent = {
|
||||||
Text("Clear cache")
|
Text("Clear cache")
|
||||||
@@ -167,7 +166,7 @@ fun DeveloperSettingsView(
|
|||||||
private fun ElementCallCategory(
|
private fun ElementCallCategory(
|
||||||
state: DeveloperSettingsState,
|
state: DeveloperSettingsState,
|
||||||
) {
|
) {
|
||||||
PreferenceCategory(title = "Element Call", showTopDivider = true) {
|
PreferenceCategory(title = "Element Call") {
|
||||||
val callUrlState = state.customElementCallBaseUrlState
|
val callUrlState = state.customElementCallBaseUrlState
|
||||||
|
|
||||||
val supportingText = if (callUrlState.baseUrl.isNullOrEmpty()) {
|
val supportingText = if (callUrlState.baseUrl.isNullOrEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user