fixing some spaces

This commit is contained in:
Tibor Kaputa 2021-09-22 23:24:07 +02:00 committed by GitHub
parent 32e184dd67
commit 683fa0a1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import com.simplemobiletools.dialer.helpers.CallNotificationManager
class CallService : InCallService() {
private val callNotificationManager by lazy { CallNotificationManager(this) }
private val callDurationHelper by lazy { (application as App).callDurationHelper }
private val callDurationHelper by lazy { (application as App).callDurationHelper }
private val callListener = object : Call.Callback() {
override fun onStateChanged(call: Call, state: Int) {
@ -17,7 +17,7 @@ class CallService : InCallService() {
callNotificationManager.setupNotification()
if (state == Call.STATE_ACTIVE) {
callDurationHelper.start()
}else if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
} else if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
callDurationHelper.cancel()
}
}