Allow turning on recording as long as call is not connected yet
This commit is contained in:
@@ -1292,7 +1292,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
when (item.itemId) {
|
when (item.itemId) {
|
||||||
|
|
||||||
R.id.recIcon -> {
|
R.id.recIcon -> {
|
||||||
if (!Call.inCall()) {
|
if (Call.call("connected") == null) {
|
||||||
BaresipService.isRecOn = !BaresipService.isRecOn
|
BaresipService.isRecOn = !BaresipService.isRecOn
|
||||||
if (BaresipService.isRecOn) {
|
if (BaresipService.isRecOn) {
|
||||||
item.setIcon(R.drawable.rec_on)
|
item.setIcon(R.drawable.rec_on)
|
||||||
|
|||||||
Reference in New Issue
Block a user