From 7aba993726e7269c94948a369c0e4733fa6c87ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 25 Jul 2023 08:24:11 +0200 Subject: [PATCH] Add param name to callbacks for clarity --- .../simplemobiletools/voicerecorder/extensions/Activity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/extensions/Activity.kt index 09207b9..5c4bc02 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/extensions/Activity.kt @@ -13,7 +13,7 @@ import com.simplemobiletools.commons.models.FileDirItem import com.simplemobiletools.voicerecorder.models.Recording import java.io.File -fun BaseSimpleActivity.deleteRecordings(recordingsToRemove: Collection, callback: (Boolean) -> Unit) { +fun BaseSimpleActivity.deleteRecordings(recordingsToRemove: Collection, callback: (success: Boolean) -> Unit) { when { isRPlus() -> { val fileUris = recordingsToRemove.map { recording -> @@ -46,7 +46,7 @@ fun BaseSimpleActivity.deleteRecordings(recordingsToRemove: Collection, callback: (Boolean) -> Unit) { +fun BaseSimpleActivity.restoreRecordings(recordingsToRestore: Collection, callback: (success: Boolean) -> Unit) { when { isRPlus() -> { val fileUris = recordingsToRestore.map { recording -> @@ -101,7 +101,7 @@ fun BaseSimpleActivity.restoreRecordings(recordingsToRestore: Collection, callback: (Boolean) -> Unit) { +fun BaseSimpleActivity.moveRecordingsToRecycleBin(recordingsToMove: Collection, callback: (success: Boolean) -> Unit) { when { isRPlus() -> { val fileUris = recordingsToMove.map { recording ->