mattvchandler / ProgressBars

Android countdown / timer app
MIT License
55 stars 8 forks source link

[Bug] Multiple ProgressBar Widgets #19

Open Aq32 opened 4 years ago

Aq32 commented 4 years ago

Hi, this probably needs confirmation by someone else but if you add more than one ProgressBar Widget (I tested with two) the first one doesn't work. By doesn't work you can only tap and edit the last widget making the first widget look like it's frozen. A notification should still popup when the timer completes it just can't be edited before/after and looks like it's bugged.

mattvchandler commented 4 years ago

I see this too. I think I know where the problem is, but I'll need to do some experimenting to see what would fix it. In Widget::build_view, is where we set the intent that is fired when you click on a widget. Somehow this is not persisting.

As a workaround, if you resize a widget, this will run build_view again, and reset the intent. After resizing, tap the widget, and it should work.

Aq32 commented 4 years ago

Can confirm that resizing will allow you to reconfigure the widget but then the other widget doesn't work. Nothing else new to add. I'll leave it to you to look into.