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

feat (library tabs): save and restore tab selection #798

Merged
merged 1 commit into from Dec 9, 2023
Merged

feat (library tabs): save and restore tab selection #798

merged 1 commit into from Dec 9, 2023

Conversation

ghost
Copy link

@ghost ghost commented Dec 9, 2023

Issue:
savedInstanceState is not restoring the tab selection when you open any movie and return to library section. Also, scroll position is not restored (I was not able to add changes to remember scroll position. Someone, pls give it a try).

Steps to reproduce:

  1. (Optional if you have liked movies in library) Go to any movie and like it from top bar
  2. Go to library, scroll and select favorite from bottom tab selector
  3. Click on any movie
  4. Go back, it will take you to watching instead of favorite

Affects:
This fix will affect tab functionality of the library section.

Fix:
libraryviewmodel will save the tab position and will be used to restore the tab position.

@fire-light42 fire-light42 merged commit 2d87983 into recloudstream:master Dec 9, 2023
2 checks passed
@ghost ghost deleted the library-tab-fix branch December 9, 2023 14:03
@fire-light42
Copy link
Collaborator

Very nice catch, I fixed the other issue with sorting by using this. 🥳

Good first pr!

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.

None yet

1 participant