User alert dialog instead of toast for no network/aec info

This commit is contained in:
Juha Heinanen
2025-04-24 08:10:15 +03:00
parent b33289b1ea
commit 8c86c14844
2 changed files with 23 additions and 7 deletions

View File

@ -2187,6 +2187,12 @@ class MainActivity : ComponentActivity() {
Log.d(TAG, "Handling intent '$action'")
val ev = action.split(",")
when (ev[0]) {
"no" -> {
alertTitle.value = getString(R.string.notice)
alertMessage.value = ev[1]
showAlert.value = true
return
}
"call", "dial" -> {
if (Call.inCall()) {
Toast.makeText(applicationContext, getString(R.string.call_already_active),