Stopwatch (timer) visible in notification with progress bar

357 views
Skip to first unread message

Holger Rögl

unread,
Aug 31, 2021, 7:37:33 AM8/31/21
to Automate
Hello,

I wanted at make a notification with a progress bar.
The progress bar itself works as expected. 

But i noticed that when a notification with progress bar was made, this notification also shows a timer that is counting the seconds and minutes since the notification was posted (like a stopwatch) 

I think in the android notification builder guideline this is call chronometer. 

My question is, is this coupled with the progress bar feature on purpose? 
And is there a way to disable it? 

Thanks! 

Holger Rögl

unread,
Aug 31, 2021, 7:41:42 AM8/31/21
to Automate

This picture shows such a notification. 
Screenshot_20210831-203952_One UI Home.jpg

Henrik "The Developer" Lindqvist

unread,
Sep 1, 2021, 10:47:30 AM9/1/21
to Automate
The Notification show block always sets the "when" time, as it's called, when creating or updating the notification, whether it has a progress bar is irrelevant.
Enable the "ongoing" option to hide it.

Holger Rögl

unread,
Sep 1, 2021, 11:24:19 AM9/1/21
to Automate
Thank you Henrik, 

Appreciate your explanation.
I didn't notice the difference about the "when" time before depending on the "ongoing" option. 

However, the behavior is still completely different when I add a "progress bar". 
Instead of a static time at the "when" position, a stopwatch is shown which increases every second. 
It can not be hidden even with ongoing option. 

I'll try to upload a video and flow file. 

Holger Rögl

unread,
Sep 1, 2021, 11:27:44 AM9/1/21
to Automate
Notification test.flo

Holger Rögl

unread,
Sep 1, 2021, 11:29:50 AM9/1/21
to Automate
Holger Rögl schrieb am Donnerstag, 2. September 2021 um 00:27:44 UTC+9:
Screen_Recording_20210902-001748_One UI Home_1.mp4

Henrik "The Developer" Lindqvist

unread,
Sep 1, 2021, 11:43:05 AM9/1/21
to Automate
It does enable "chronometer" (stopwatch) mode when using a progress bar, i expected it to only do so when the "when" timer is enabled, i.e. not "ongoing", i guess not.
Hmm, i guess it should only show the stopwatch for "ongoing" events, but i suspect it's currently useless for progress bars notifications since those update the "when" time at every update. I got to think of a solution.

How notifications works has changed a lot what Android version are you running?

Holger Rögl

unread,
Sep 1, 2021, 12:07:59 PM9/1/21
to Automate
I'm running android 11.

If i can express a wish, just remove the chronometer feature for all notifications with progress bar. 
If for some usecase scenarios a stopwatch is needed, the developer can put it in the notification message.
For my usecase a stopwatch is irritating. 

Thank you for your efforts in developing this great tool! 

Henrik "The Developer" Lindqvist

unread,
Sep 1, 2021, 12:59:06 PM9/1/21
to Automate
Agreed, i'll remove it for now.
Reply all
Reply to author
Forward
0 new messages