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

Re-use current content fragment for loading related content #26

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

kekkyojin
Copy link
Collaborator

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change

PR Type

What kind of change does this PR introduce?

  • Bugfix

Fixes

Issue Number: #1

What is the current behavior?

Every related content click adds a transaction to the back stack, which means the browsing history is kept

What is the new behavior?

Related content is loaded in current fragment, which doesn't add the transaction to the back stack, not adding then to the browsing history

Copy link
Contributor

@akinwale akinwale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this also work properly with back navigation?

@kekkyojin
Copy link
Collaborator Author

kekkyojin commented Oct 15, 2021

On FileView, tapping Back will bring user to the previous place, be it the Home or Following or Search. History stack is not kept.

EDIT: everything else works as expected, including MiniPlayer. What this does is just reuse current fragment but loading new data. It is saving the time to recreate the fragment

@akinwale akinwale self-requested a review October 22, 2021 09:02
Copy link
Contributor

@akinwale akinwale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@kekkyojin kekkyojin merged commit 615ea4e into master Oct 22, 2021
@kekkyojin kekkyojin deleted the dont-stack-fileviews branch October 22, 2021 11:04
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