refactor: Rename onCustomOutputFolderNotAccessible -> onBatchesFolderNotAccessible

This commit is contained in:
Myzel394 2023-12-31 22:55:43 +01:00
parent 666f0bee70
commit 2c09245697
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 3 additions and 4 deletions

View File

@ -212,7 +212,6 @@ class AudioRecorderService :
val name = getNameForMediaFile()
val file = batchesFolder.asMediaGetLegacyFile(name)
// TODO: Ask permission on settings screen
setOutputFile(file.absolutePath)
}
}

View File

@ -17,7 +17,7 @@ abstract class IntervalRecorderService<I, B : BatchesFolder> :
abstract var batchesFolder: B
var onCustomOutputFolderNotAccessible: () -> Unit = {}
var onBatchesFolderNotAccessible: () -> Unit = {}
abstract fun getRecordingInformation(): I
@ -42,8 +42,8 @@ abstract class IntervalRecorderService<I, B : BatchesFolder> :
super.start()
batchesFolder.initFolders()
if (!batchesFolder.checkIfFolderIsAccessible()) {
onCustomOutputFolderNotAccessible()
return
// TODO: Add handler
onBatchesFolderNotAccessible()
}
createTimer()