diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt
index 058d3afc..06f8af23 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt
@@ -468,7 +468,7 @@ class BaresipService: Service() {
activeNetwork = cm.activeNetwork
Log.i(TAG, "Active network: $activeNetwork")
- Log.d(TAG, "AGC/NS available = $agcAvailable/$nsAvailable")
+ Log.i(TAG, "AEC/AGC/NS available = $aecAvailable/$agcAvailable/$nsAvailable")
val userAgent = Config.variable("user_agent")
Thread {
@@ -498,15 +498,13 @@ class BaresipService: Service() {
)
}
- if (linkAddresses.isEmpty()) {
- val newIntent = Intent(this, MainActivity::class.java)
- newIntent.flags =
- Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP or
- Intent.FLAG_ACTIVITY_NEW_TASK
- newIntent.putExtra("action", "no network")
- startActivity(newIntent)
- }
-
+ var message = ""
+ if (linkAddresses.isEmpty())
+ message = '\u2022' + " " + getString(R.string.no_network) + '\n'
+ if (!aecAvailable)
+ message = message + '\u2022' + " " + getString(R.string.no_aec) + '\n'
+ if (message != "")
+ toast(message.dropLast(1), Toast.LENGTH_LONG)
}
"Start Content Observer" -> {
@@ -1299,9 +1297,9 @@ class BaresipService: Service() {
}
}
- private fun toast(message: String) {
+ private fun toast(message: String, length: Int = Toast.LENGTH_SHORT) {
Handler(Looper.getMainLooper()).post {
- Toast.makeText(this@BaresipService.applicationContext, message, Toast.LENGTH_LONG).show()
+ Toast.makeText(this@BaresipService.applicationContext, message, length).show()
}
}
@@ -1607,6 +1605,7 @@ class BaresipService: Service() {
}
}
+ @Suppress("unused")
private external fun baresipStart(
path: String,
addresses: String,
@@ -1614,6 +1613,7 @@ class BaresipService: Service() {
software: String
)
+ @Suppress("unused")
external fun baresipStop(force: Boolean)
@SuppressLint("MutableCollectionMutableState")
diff --git a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
index 1db9dea6..f15e1223 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
@@ -2187,12 +2187,6 @@ class MainActivity : ComponentActivity() {
Log.d(TAG, "Handling intent '$action'")
val ev = action.split(",")
when (ev[0]) {
- "no network" -> {
- alertTitle.value = getString(R.string.notice)
- alertMessage.value = getString(R.string.no_network)
- showAlert.value = true
- return
- }
"call", "dial" -> {
if (Call.inCall()) {
Toast.makeText(applicationContext, getString(R.string.call_already_active),
diff --git a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt
index bf969982..4a1c082a 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt
@@ -994,7 +994,7 @@ object Utils {
if (aec != null) {
BaresipService.aecAvailable = true
aec.release()
- Log.d(TAG, "Creation of hardware AEC for $sessionId succeeded")
+ Log.i(TAG, "Creation of hardware AEC for $sessionId succeeded")
} else {
Log.w(TAG, "Creation of hardware AEC for $sessionId failed")
}
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
index bd24bd58..bf0ede78 100644
--- a/app/src/main/res/values-fi/strings.xml
+++ b/app/src/main/res/values-fi/strings.xml
@@ -576,9 +576,10 @@
Salli Kamera-lupa jotta voit soittaa videopuheluita ja vastata niihin.
Et voi tallentaa sovelluksen tietoja ilman Tallennustila-lupaa.
Et voi palauttaa sovelluksen tietoja ilman Tallennustila-lupaa.
- Sinulla ei ole yhtään tuettua video-kameraa.
+ Ei tuettuja videokameroita.
Näytä salasana
Ei verkkoyhteyttä!
+ Ei laitteistolla tuettua kaiun poistoa!
Puhelutiedot
Et voi käyttää Androidin yhteystietoja ilman Yhteystiedot-lupaa.
Audio fokus evätty!
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f9e85561..f1e34c45 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -559,9 +559,10 @@
You are not able restore backup without \"Storage\" permission.
You are not able to access Android contacts without
\"Contacts\" permission.
- You don\'t have any supported video cameras.
+ No supported video cameras!
Show Password
No network connection!
+ No hardware Acoustic Echo Cancellation!
Audio focus denied!
Permissions rationale
baresip needs \"Microphone\" permission for voice calls,