mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
minor code style update
This commit is contained in:
@ -14,9 +14,10 @@ class CallService : InCallService() {
|
|||||||
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) {
|
||||||
super.onStateChanged(call, state)
|
super.onStateChanged(call, state)
|
||||||
if(state != Call.STATE_DISCONNECTED){
|
if (state != Call.STATE_DISCONNECTED) {
|
||||||
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) {
|
||||||
|
Reference in New Issue
Block a user