Skip to content
Snippets Groups Projects
Commit 94df228f authored by tasn's avatar tasn
Browse files

Update to new Version 31 requirements.

parent d01a3455
No related branches found
No related tags found
No related merge requests found
......@@ -244,8 +244,8 @@ class CustomCertService: Service() {
.setContentText(this@CustomCertService.getString(R.string.certificate_notification_user_interaction))
.setSubText(cert.subjectDN.name)
.setCategory(NotificationCompat.CATEGORY_SERVICE)
.setContentIntent(PendingIntent.getActivity(this@CustomCertService, id, decisionIntent, PendingIntent.FLAG_UPDATE_CURRENT))
.setDeleteIntent(PendingIntent.getService(this@CustomCertService, id, rejectIntent, PendingIntent.FLAG_UPDATE_CURRENT))
.setContentIntent(PendingIntent.getActivity(this@CustomCertService, id, decisionIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE))
.setDeleteIntent(PendingIntent.getService(this@CustomCertService, id, rejectIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE))
.build()
val nm = NotificationUtils.createChannels(this@CustomCertService)
nm.notify(CertUtils.getTag(cert), Constants.NOTIFICATION_CERT_DECISION, notify)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment