From 653080090b481462a91a9e21c14a17a7e3e9f7ae Mon Sep 17 00:00:00 2001 From: ajp_anton Date: Sat, 8 Aug 2026 06:00:56 +0000 Subject: [PATCH] Avoid suppressing message updates as progress --- .../notificationlog/capture/NotificationSnapshot.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/se/ajpanton/notificationlog/capture/NotificationSnapshot.kt b/app/src/main/java/se/ajpanton/notificationlog/capture/NotificationSnapshot.kt index 53a4895..50a1c89 100644 --- a/app/src/main/java/se/ajpanton/notificationlog/capture/NotificationSnapshot.kt +++ b/app/src/main/java/se/ajpanton/notificationlog/capture/NotificationSnapshot.kt @@ -78,7 +78,11 @@ object NotificationContents { } == true, isGroupSummary = notification.flags and Notification.FLAG_GROUP_SUMMARY != 0, isRoutine = extras?.getBoolean(Notification.EXTRA_SHOW_CHRONOMETER, false) == true || - extras?.containsKey(Notification.EXTRA_PROGRESS) == true, + extras?.getBoolean(Notification.EXTRA_PROGRESS_INDETERMINATE, false) == true || + extras?.let { + it.getInt(Notification.EXTRA_PROGRESS_MAX, 0) > 0 && + it.getInt(Notification.EXTRA_PROGRESS, -1) >= 0 + } == true, ) }