From 233fbcaf252e9272a500fb1ac2b1f1c91cfbe2df Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Sat, 25 Sep 2021 21:32:24 +0200 Subject: [PATCH] minor code style update --- .../com/simplemobiletools/dialer/services/CallService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/dialer/services/CallService.kt b/app/src/main/kotlin/com/simplemobiletools/dialer/services/CallService.kt index dc71a89e9..83c5fb699 100644 --- a/app/src/main/kotlin/com/simplemobiletools/dialer/services/CallService.kt +++ b/app/src/main/kotlin/com/simplemobiletools/dialer/services/CallService.kt @@ -14,9 +14,10 @@ class CallService : InCallService() { private val callListener = object : Call.Callback() { override fun onStateChanged(call: Call, state: Int) { super.onStateChanged(call, state) - if(state != Call.STATE_DISCONNECTED){ + if (state != Call.STATE_DISCONNECTED) { callNotificationManager.setupNotification() } + if (state == Call.STATE_ACTIVE) { callDurationHelper.start() } else if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {