fix: set ongoing true for lock task mode exit notification

This commit is contained in:
Tam Nguyen
2025-12-19 08:19:13 +11:00
parent dad57a8846
commit 98a5b1fb32

View File

@@ -47,6 +47,7 @@ class LockTaskService: Service() {
.setContentTitle(getText(R.string.lock_task_mode))
.setSmallIcon(R.drawable.lock_fill0)
.addAction(NotificationCompat.Action.Builder(null, getString(R.string.stop), pendingIntent).build())
.setOngoing(true)
.build()
ServiceCompat.startForeground(
this, NotificationType.LockTaskMode.id, notification,