mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show the call duration at the notification, while active
This commit is contained in:
@ -275,6 +275,7 @@ class CallActivity : SimpleActivity() {
|
|||||||
.setCategory(Notification.CATEGORY_CALL)
|
.setCategory(Notification.CATEGORY_CALL)
|
||||||
.setCustomContentView(collapsedView)
|
.setCustomContentView(collapsedView)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
|
.setUsesChronometer(CallManager.getState() == Call.STATE_ACTIVE)
|
||||||
.setChannelId(channelId)
|
.setChannelId(channelId)
|
||||||
.setStyle(NotificationCompat.DecoratedCustomViewStyle())
|
.setStyle(NotificationCompat.DecoratedCustomViewStyle())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user