From 219779a1017680ebfd40c70fb27d0c8fb2dd9c2b Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Tue, 14 Apr 2026 08:33:01 +0300 Subject: [PATCH] Removed unnecessary wake lock updates --- app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index d3c26a28..107f0c04 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -352,6 +352,7 @@ class BaresipService: Service() { } updateDnsServers() + updatePartialWakeLock() val assets = arrayOf("accounts", "config", "contacts") var file = File(filesPath) @@ -746,7 +747,6 @@ class BaresipService: Service() { if (uas.value[accountIndex].account.aor == aor) { when (ev[0]) { "registering", "unregistering" -> { - updatePartialWakeLock() ua.updateStatus(circleYellow.getValue(colorblind)) updateStatusNotification() if (isMainVisible) @@ -754,7 +754,6 @@ class BaresipService: Service() { return } "registered" -> { - updatePartialWakeLock() ua.updateStatus( if (Api.account_regint(ua.account.accp) == 0) R.drawable.circle_white @@ -767,7 +766,6 @@ class BaresipService: Service() { return } "registering failed" -> { - updatePartialWakeLock() ua.updateStatus(if (Api.account_regint(ua.account.accp) == 0) R.drawable.circle_white else @@ -1635,8 +1633,6 @@ class BaresipService: Service() { Log.e(TAG, "Failed to update foreground notification: ${e.message}") nm.notify(STATUS_NOTIFICATION_ID, notification) } - - updatePartialWakeLock() } @SuppressLint("WakelockTimeout") @@ -1949,7 +1945,6 @@ class BaresipService: Service() { private fun updateNetwork() { if (!isNativeReady) return - updatePartialWakeLock() updateDnsServers() val addresses = linkAddresses()