From fcf0d74469014c023c99b94d5ed7c70cf94c5d0c Mon Sep 17 00:00:00 2001 From: Matthias Emde Date: Fri, 3 Jan 2025 21:07:29 +0100 Subject: [PATCH] disable snackbar in while undo is not working --- .../presentation/ActiveSessionScreen.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/app/musikus/activesession/presentation/ActiveSessionScreen.kt b/app/src/main/java/app/musikus/activesession/presentation/ActiveSessionScreen.kt index e1ec1e8e..7662b81a 100644 --- a/app/src/main/java/app/musikus/activesession/presentation/ActiveSessionScreen.kt +++ b/app/src/main/java/app/musikus/activesession/presentation/ActiveSessionScreen.kt @@ -1159,12 +1159,13 @@ private fun SectionListElement( deleted = deleted, onDeleted = { onSectionDeleted(item) - showSnackbar( - MainUiEvent.ShowSnackbar( - message = context.getString(R.string.active_session_sections_list_element_deleted), - onUndo = { } - ) - ) + // as long as we don't have undo, we don't need to show a snackbar +// showSnackbar( +// MainUiEvent.ShowSnackbar( +// message = context.getString(R.string.active_session_sections_list_element_deleted), +// onUndo = { } +// ) +// ) } ) { Surface(