From c91426bf87b116cf3d7ce8635b82f5a7ccb2a3c8 Mon Sep 17 00:00:00 2001 From: ardevd Date: Sat, 9 May 2026 22:30:41 +0200 Subject: [PATCH 1/3] fix: added notification category and updated priorty to default --- .../tagius/features/background/TimerNotificationManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt b/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt index fac1642..8ad529d 100644 --- a/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt +++ b/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt @@ -63,7 +63,8 @@ object TimerNotificationManager { .setSmallIcon(R.drawable.ic_timer) .setContentTitle(context.getString(R.string.timer_running)) .setContentText(description.ifBlank { context.getString(R.string.records_no_description) }) - .setPriority(NotificationCompat.PRIORITY_LOW) + .setPriority(NotificationCompat.PRIORITY_DEFAULT) + .setCategory(NotificationCompat.CATEGORY_STOPWATCH) .setOngoing(true) .setUsesChronometer(true) .setWhen(startTime * 1000L) From bdabf683993d0f76c73fa8dec170540139f7659f Mon Sep 17 00:00:00 2001 From: ardevd Date: Sat, 9 May 2026 22:36:30 +0200 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../tagius/features/background/TimerNotificationManager.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt b/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt index 8ad529d..876bf5b 100644 --- a/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt +++ b/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt @@ -63,7 +63,6 @@ object TimerNotificationManager { .setSmallIcon(R.drawable.ic_timer) .setContentTitle(context.getString(R.string.timer_running)) .setContentText(description.ifBlank { context.getString(R.string.records_no_description) }) - .setPriority(NotificationCompat.PRIORITY_DEFAULT) .setCategory(NotificationCompat.CATEGORY_STOPWATCH) .setOngoing(true) .setUsesChronometer(true) From 5cf6e6c3c4104421889d0be593c4e285705f0586 Mon Sep 17 00:00:00 2001 From: ardevd Date: Sat, 9 May 2026 22:37:56 +0200 Subject: [PATCH 3/3] added new default timer channel --- .../tagius/features/background/TimerNotificationManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt b/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt index 876bf5b..2ca740f 100644 --- a/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt +++ b/app/src/main/java/net/ardevd/tagius/features/background/TimerNotificationManager.kt @@ -19,7 +19,7 @@ object TimerNotificationManager { private const val NOTIFICATION_ID = 1002 fun showTimerNotification(context: Context, description: String, startTime: Long, key: String) { - val channelId = "active_timer" + val channelId = "active_timer_v2" val groupId = "timers" val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager @@ -30,7 +30,7 @@ object TimerNotificationManager { val channel = NotificationChannel( channelId, context.getString(R.string.notification_channel_active_timer), - NotificationManager.IMPORTANCE_LOW + NotificationManager.IMPORTANCE_DEFAULT ).apply { group = groupId }