Set callActionUri only when baresip is not running

This commit is contained in:
Juha Heinanen
2021-01-21 17:32:00 +02:00
parent ad66007d58
commit 789bfb4431

View File

@ -84,7 +84,7 @@ class MainActivity : AppCompatActivity() {
Log.d("Baresip", "MainActivity onCreate ${intent.action}/${intent.data}/$intentAction")
if (intent?.action == ACTION_CALL && BaresipService.callActionUri == "")
if (intent?.action == ACTION_CALL && !BaresipService.isServiceRunning)
BaresipService.callActionUri = URLDecoder.decode(intent.data.toString(), "UTF-8")
kgm = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager