mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
refactor: Rename onCustomOutputFolderNotAccessible -> onBatchesFolderNotAccessible
This commit is contained in:
parent
666f0bee70
commit
2c09245697
@ -212,7 +212,6 @@ class AudioRecorderService :
|
||||
val name = getNameForMediaFile()
|
||||
val file = batchesFolder.asMediaGetLegacyFile(name)
|
||||
|
||||
// TODO: Ask permission on settings screen
|
||||
setOutputFile(file.absolutePath)
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user