Skip to content

Commit

Permalink
do not show snackbar on section delete
Browse files Browse the repository at this point in the history
  • Loading branch information
mipro98 committed Dec 30, 2024
1 parent 2a8b5df commit 7b3a061
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -1801,4 +1802,4 @@ private val dummyLibraryItems = (1..20).asSequence().map {
customOrder = null,
libraryFolderId = null
)
}
}

0 comments on commit 7b3a061

Please sign in to comment.