mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +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 name = getNameForMediaFile()
|
||||||
val file = batchesFolder.asMediaGetLegacyFile(name)
|
val file = batchesFolder.asMediaGetLegacyFile(name)
|
||||||
|
|
||||||
// TODO: Ask permission on settings screen
|
|
||||||
setOutputFile(file.absolutePath)
|
setOutputFile(file.absolutePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ abstract class IntervalRecorderService<I, B : BatchesFolder> :
|
|||||||
|
|
||||||
abstract var batchesFolder: B
|
abstract var batchesFolder: B
|
||||||
|
|
||||||
var onCustomOutputFolderNotAccessible: () -> Unit = {}
|
var onBatchesFolderNotAccessible: () -> Unit = {}
|
||||||
|
|
||||||
abstract fun getRecordingInformation(): I
|
abstract fun getRecordingInformation(): I
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ abstract class IntervalRecorderService<I, B : BatchesFolder> :
|
|||||||
super.start()
|
super.start()
|
||||||
batchesFolder.initFolders()
|
batchesFolder.initFolders()
|
||||||
if (!batchesFolder.checkIfFolderIsAccessible()) {
|
if (!batchesFolder.checkIfFolderIsAccessible()) {
|
||||||
onCustomOutputFolderNotAccessible()
|
// TODO: Add handler
|
||||||
return
|
onBatchesFolderNotAccessible()
|
||||||
}
|
}
|
||||||
|
|
||||||
createTimer()
|
createTimer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user