Avoid bogus "No network connection" notice

This commit is contained in:
Juha Heinanen
2026-08-10 15:57:07 +03:00
parent e93162d7c8
commit 2f51e48276
2 changed files with 3 additions and 5 deletions

View File

@ -601,6 +601,8 @@ class BaresipService: Service() {
hotSpotAddresses = Utils.hotSpotAddresses()
linkAddresses = linkAddresses()
if (linkAddresses.isEmpty())
toast(getString(R.string.no_network), Toast.LENGTH_LONG)
var addresses = ""
for (la in linkAddresses)
addresses = "$addresses;${la.key};${la.value}"
@ -630,11 +632,6 @@ class BaresipService: Service() {
Log.i(TAG, "AEC/AGC/NS available = $aecAvailable/$agcAvailable/$nsAvailable")
isServiceRunning = true
if (linkAddresses.isEmpty())
toast(getString(R.string.no_network), Toast.LENGTH_LONG)
if (!aecAvailable)
toast(getString(R.string.no_aec), Toast.LENGTH_LONG)

View File

@ -1,3 +1,4 @@
- Do not create Mobile account if SIM is data-only
- Improved Unique Contact URI help text
- Avoid bogus "No network connection" notice
- New translations (Chinese)