Reverted Api.aufilt_enable usage
This commit is contained in:
@@ -567,13 +567,17 @@ private fun TopAppBar(
|
|||||||
.clip(CircleShape)
|
.clip(CircleShape)
|
||||||
.combinedClickable(
|
.combinedClickable(
|
||||||
onClick = {
|
onClick = {
|
||||||
if (!Call.isAnyCallActive(ctx)) {
|
if (Call.call("connected") == null) {
|
||||||
BaresipService.isRecOn = !BaresipService.isRecOn
|
BaresipService.isRecOn = !BaresipService.isRecOn
|
||||||
Api.aufilt_enable("sndfile", BaresipService.isRecOn)
|
if (BaresipService.isRecOn) {
|
||||||
|
Api.module_load("sndfile")
|
||||||
|
} else {
|
||||||
|
Api.module_unload("sndfile")
|
||||||
|
}
|
||||||
isRecOn = BaresipService.isRecOn
|
isRecOn = BaresipService.isRecOn
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
Toast.makeText(ctx, R.string.rec_in_call, Toast.LENGTH_SHORT).show()
|
Toast.makeText(ctx, R.string.rec_in_call, Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onLongClick = {
|
onLongClick = {
|
||||||
alertTitle.value = callRecordingTitle
|
alertTitle.value = callRecordingTitle
|
||||||
|
|||||||
Reference in New Issue
Block a user