Code style improvements
This commit is contained in:
@@ -572,15 +572,18 @@ private fun TopAppBar(
|
|||||||
onClick = {
|
onClick = {
|
||||||
if (Call.call("connected") == null) {
|
if (Call.call("connected") == null) {
|
||||||
BaresipService.isRecOn = !BaresipService.isRecOn
|
BaresipService.isRecOn = !BaresipService.isRecOn
|
||||||
if (BaresipService.isRecOn) {
|
if (BaresipService.isRecOn)
|
||||||
Api.module_load("sndfile")
|
Api.module_load("sndfile")
|
||||||
} else {
|
else
|
||||||
Api.module_unload("sndfile")
|
Api.module_unload("sndfile")
|
||||||
}
|
|
||||||
isRecOn = BaresipService.isRecOn
|
isRecOn = BaresipService.isRecOn
|
||||||
} else {
|
|
||||||
Toast.makeText(ctx, R.string.rec_in_call, Toast.LENGTH_SHORT).show()
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
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