mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-22 22:37:51 +01:00
fixing some spaces
This commit is contained in:
parent
32e184dd67
commit
683fa0a1db
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user