Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

## Fixed

- #2154 The expert mode debug screen is now only accessible after the expert mode warning has been acknowledged.
- #2074 Scrolling the action or trigger list no longer accidentally moves items; reordering by drag now only activates from the drag handle or via long-press.

## Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,34 +252,34 @@ private fun Content(
)
}
}

Spacer(modifier = Modifier.height(16.dp))

OptionsHeaderRow(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
icon = Icons.Outlined.BugReport,
text = stringResource(R.string.settings_section_debugging_title),
)

Spacer(modifier = Modifier.height(8.dp))

OptionPageButton(
modifier = Modifier.padding(horizontal = 8.dp),
title = stringResource(R.string.title_pref_get_event_debug),
text = stringResource(R.string.summary_pref_get_event_debug),
icon = Icons.Outlined.BugReport,
onClick = onGetEventClick,
)
Spacer(modifier = Modifier.height(8.dp))
} else {
Text(
modifier = Modifier.padding(horizontal = 32.dp),
text = stringResource(R.string.expert_mode_settings_unavailable_text),
textAlign = TextAlign.Center,
)
}

Spacer(modifier = Modifier.height(16.dp))

OptionsHeaderRow(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 16.dp),
icon = Icons.Outlined.BugReport,
text = stringResource(R.string.settings_section_debugging_title),
)

Spacer(modifier = Modifier.height(8.dp))

OptionPageButton(
modifier = Modifier.padding(horizontal = 8.dp),
title = stringResource(R.string.title_pref_get_event_debug),
text = stringResource(R.string.summary_pref_get_event_debug),
icon = Icons.Outlined.BugReport,
onClick = onGetEventClick,
)
Spacer(modifier = Modifier.height(8.dp))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class ExpertModeViewModel @Inject constructor(

fun onGetEventClick() {
viewModelScope.launch {
if (warningState.value !is ExpertModeWarningState.Understood) return@launch
navigate("get_event_debug", NavDestination.GetEvent)
}
}
Expand Down
Loading