Skip to content
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

Update TimerText only when UI is visible #178

Merged

Conversation

ksharma-xyz
Copy link
Owner

@ksharma-xyz ksharma-xyz commented Oct 14, 2024

Purpose of this PR is to update Timer to Stop Updating when there are no consumers.

This PR addresses the issue where the updateTimeTextPeriodically method continues to execute even when the app is in the background, as long as the ViewModel is alive.

Before

Before-Bug.mov

After

UpdateTimeText-Periodically-UIListens.mov

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ksharma-xyz and the rest of your teammates on Graphite Graphite

@ksharma-xyz ksharma-xyz force-pushed the 10-14-update_timer_and_stop_updating_when_no_consumers branch from 670243d to cd5cd2e Compare October 14, 2024 09:59
@ksharma-xyz ksharma-xyz changed the title Update TimerText only when UI is listening for updates Update TimerText only when UI is visible Oct 14, 2024
@ksharma-xyz ksharma-xyz marked this pull request as ready for review October 14, 2024 10:12
@ksharma-xyz ksharma-xyz merged commit a8f6f91 into main Oct 14, 2024
1 check passed
@ksharma-xyz ksharma-xyz deleted the 10-14-update_timer_and_stop_updating_when_no_consumers branch October 14, 2024 10:12
@ksharma-xyz ksharma-xyz added the achievement When a big problem is fixed or something exciting gets working label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
achievement When a big problem is fixed or something exciting gets working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant