-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the displayed time is not working #16
Comments
Looking at the source of the AnalogClock widget, the bug is in didUpdateWidget:
The second assignment statement is wrong, as it unconditionally sets the clock time to the current time. |
|
@JogyBlack did you consider making a PR? |
Broken because of: * furkantektas/analog_clock#16
Thank you @JogyBlack for spotting the bug and fixing it :) also for providing an example use case, @walles's PR (#18) fixed that bug. Thanks @walles for the PR! |
I have a static clock (isLive: false) that displays a time. Then, as a result of user action, it has to display a different time.
This does not work. Instead of displaying the second time, the AnalogClock widget starts displaying the current system time.
Minimal example to demonstrate the problem:
When tapping the (+) button, the clock should show 12:45. Instead it shows the current time.
The text was updated successfully, but these errors were encountered: