mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
fix: do not show notification when call is ended
This commit is contained in:
@ -14,7 +14,9 @@ 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)
|
||||||
callNotificationManager.setupNotification()
|
if(state != Call.STATE_DISCONNECTED){
|
||||||
|
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