show the call duration at the notification, while active

This commit is contained in:
tibbi 2020-05-01 18:50:28 +02:00
parent 70466bd1a1
commit b4d2bdf38d

View File

@ -275,6 +275,7 @@ class CallActivity : SimpleActivity() {
.setCategory(Notification.CATEGORY_CALL)
.setCustomContentView(collapsedView)
.setOngoing(true)
.setUsesChronometer(CallManager.getState() == Call.STATE_ACTIVE)
.setChannelId(channelId)
.setStyle(NotificationCompat.DecoratedCustomViewStyle())