Set callActionUri only when baresip is not running
This commit is contained in:
@@ -84,7 +84,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
Log.d("Baresip", "MainActivity onCreate ${intent.action}/${intent.data}/$intentAction")
|
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")
|
BaresipService.callActionUri = URLDecoder.decode(intent.data.toString(), "UTF-8")
|
||||||
|
|
||||||
kgm = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
|
kgm = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager
|
||||||
|
|||||||
Reference in New Issue
Block a user