When resuming to baresip, check if its default app roles have changed

This commit is contained in:
Juha Heinanen
2026-06-26 16:12:00 +03:00
parent 47eada966d
commit c4b3f8acb4
2 changed files with 16 additions and 0 deletions

View File

@ -314,6 +314,11 @@ class MainActivity : ComponentActivity() {
super.onResume()
Log.d(TAG, "Main onResume")
nm.cancelAll()
if (Build.VERSION.SDK_INT >= 29) {
val baresipService = Intent(this, BaresipService::class.java)
baresipService.action = "Check Roles"
startService(baresipService)
}
}
override fun onPause() {