mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
fixing some spaces
This commit is contained in:
@ -9,7 +9,7 @@ import com.simplemobiletools.dialer.helpers.CallNotificationManager
|
|||||||
|
|
||||||
class CallService : InCallService() {
|
class CallService : InCallService() {
|
||||||
private val callNotificationManager by lazy { CallNotificationManager(this) }
|
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() {
|
private val callListener = object : Call.Callback() {
|
||||||
override fun onStateChanged(call: Call, state: Int) {
|
override fun onStateChanged(call: Call, state: Int) {
|
||||||
@ -17,7 +17,7 @@ class CallService : InCallService() {
|
|||||||
callNotificationManager.setupNotification()
|
callNotificationManager.setupNotification()
|
||||||
if (state == Call.STATE_ACTIVE) {
|
if (state == Call.STATE_ACTIVE) {
|
||||||
callDurationHelper.start()
|
callDurationHelper.start()
|
||||||
}else if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
|
} else if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
|
||||||
callDurationHelper.cancel()
|
callDurationHelper.cancel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user