update the current pending intent at pressing the notification

This commit is contained in:
tibbi 2018-11-21 18:53:54 +01:00
parent 6cc0c6ea15
commit 52c569f58b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class DialerCallService : Service() {
putExtra(CALL_STATUS, callStatus)
putExtra(IS_INCOMING_CALL, isIncomingCall)
}
return PendingIntent.getActivity(this, 0, intent, 0)
return PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)
}
private fun getCallStatusString(): String {