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

Observe livedata once in HomeFragment #6955

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

Pittvandewitt
Copy link
Contributor

The livedata observe method takes a lifecycleowner as a parameter. This takes care of the registering and unregistering, so we don't have to do this in onResume and onPause. Added benefit is that the loading indicator is not displayed every time you return to the home page.

@Pittvandewitt Pittvandewitt changed the title Observe livedata once Observe livedata once in HomeFragment Jan 15, 2025
@Bnyro Bnyro merged commit eb7df28 into libre-tube:master Jan 15, 2025
2 of 3 checks passed
@Bnyro
Copy link
Member

Bnyro commented Jan 15, 2025

Thank you!

@Pittvandewitt Pittvandewitt deleted the bugfix/home-reload branch January 16, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants