mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-04-07 14:51:05 +02:00
tweaking some outgoing call notification handling
This commit is contained in:
parent
6fad2733af
commit
1b9028ba6c
@ -44,17 +44,12 @@ class DialerCallService : Service() {
|
|||||||
stopForeground(true)
|
stopForeground(true)
|
||||||
stopSelf()
|
stopSelf()
|
||||||
}
|
}
|
||||||
intent.getBooleanExtra(IS_INCOMING_CALL, false) -> {
|
intent.extras?.containsKey(CALL_STATUS) == true -> {
|
||||||
callNumber = intent.getStringExtra(CALL_NUMBER)
|
callNumber = intent.getStringExtra(CALL_NUMBER)
|
||||||
callStatus = intent.getIntExtra(CALL_STATUS, Call.STATE_NEW)
|
callStatus = intent.getIntExtra(CALL_STATUS, Call.STATE_NEW)
|
||||||
isIncomingCall = intent.getBooleanExtra(IS_INCOMING_CALL, false)
|
isIncomingCall = intent.getBooleanExtra(IS_INCOMING_CALL, false)
|
||||||
getOtherParticipantsName()
|
getOtherParticipantsName()
|
||||||
}
|
}
|
||||||
intent.extras?.containsKey(CALL_STATUS) == true -> {
|
|
||||||
callStatus = intent.getIntExtra(CALL_STATUS, Call.STATE_NEW)
|
|
||||||
callNumber = intent.getStringExtra(CALL_NUMBER)
|
|
||||||
getOtherParticipantsName()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return START_STICKY
|
return START_STICKY
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user