Skip to content

Commit

Permalink
fix: Crash when selecting the default Menza
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastaapps committed Jan 23, 2024
1 parent ae41f71 commit 7bcf59a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023, Petr Laštovička as Lasta apps, All rights reserved
* Copyright 2024, Petr Laštovička as Lasta apps, All rights reserved
*
* This file is part of Menza.
*
Expand Down Expand Up @@ -44,7 +44,10 @@ internal fun <T> ChooseFromDialog(
onDismiss: () -> Unit,
toString: (T) -> String = { it.toString() },
) {
MenzaDialog(onDismissRequest = onDismiss) {
MenzaDialog(
onDismissRequest = onDismiss,
scrollState = null,
) {
ChooseFromDialogContent(
title = title,
items = items,
Expand Down Expand Up @@ -100,6 +103,6 @@ private fun ChooseFromDialogPreview() = PreviewWrapper {
items = persistentListOf("Ahoj", "Jak", "Se", "Máš?", "Ale znáš to"),
onItemSelected = {},
onDismiss = {},
toString = { it }
toString = { it },
)
}
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<string name="settings_init_menza_remember">Remember latest menza</string>
<string name="settings_init_menza_specific">Let me choose</string>
<string name="settings_init_menza_select_title">Menza to open</string>
<string name="settings_init_menza_select_placeholder">None yet</string>
<string name="settings_init_menza_select_placeholder">None so far</string>
<string name="settings_reload_title">Full data reload</string>
<string name="settings_reload_text">
This operation clears local data like menza\'s name, location, contacts, etc.
Expand Down

0 comments on commit 7bcf59a

Please sign in to comment.