diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/adapters/RecordingsAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/adapters/RecordingsAdapter.kt index 89c502f..17d6712 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/adapters/RecordingsAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/adapters/RecordingsAdapter.kt @@ -128,7 +128,7 @@ class RecordingsAdapter( private fun askConfirmDelete() { val itemsCnt = selectedKeys.size - val firstItem = getSelectedItems().first() + val firstItem = getSelectedItems().firstOrNull() ?: return val items = if (itemsCnt == 1) { "\"${firstItem.title}\"" } else {