mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
feat: Add delay to show dialog
This commit is contained in:
parent
1029ff4e96
commit
ac544a9b8e
@ -41,6 +41,7 @@ import app.myzel394.alibi.db.LastRecording
|
||||
import app.myzel394.alibi.services.RecorderNotificationHelper
|
||||
import app.myzel394.alibi.ui.effects.rememberSettings
|
||||
import app.myzel394.alibi.ui.models.AudioRecorderModel
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@ -62,6 +63,9 @@ fun AudioRecorder(
|
||||
scope.launch {
|
||||
isProcessingAudio = true
|
||||
|
||||
// Give the user some time to see the processing dialog
|
||||
delay(100)
|
||||
|
||||
try {
|
||||
val file = audioRecorder.lastRecording!!.concatenateFiles()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user