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

- Fix tab order bug by removing switchTab call in notifyStackItemAdd. #32

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

MertNYuksel
Copy link
Member

@MertNYuksel MertNYuksel commented Apr 21, 2020

  • Fix tab order bug by removing switchTab call in notifyStackItemAdd.
  • Start calling switchTab in resetCurrentTab function in order to notify stackState. This is needed because clearAllFragments pops tabIndex in tab index stack when fragment stack for that tab is empty.
  • Set stack count in initializeStackState method in order to create empty fragment stacks at initialization. Previous to this in order to create fragment stacks we were using root fragment provider and calling addStackItem method for each root fragment.
  • Start initializing root fragments when it is needed, ie. switchTab.

Types of changes

  • [ x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

- Start calling switchTab in resetCurrentTab function in order to notify stackState. This is needed because clearAllFragments pops tabIndex in tab index stack when fragment stack for that tab is empty.
- Set stack count in initializeStackState method in order to create empty fragment stacks at initialization. Previous to this in order to create fragment stacks we were using root fragment provider and calling addStackItem method for each root fragments.
- Start initializing root fragments when it is needed, ie. switchTab.
@MertNYuksel MertNYuksel merged commit 300bbe9 into 0.9.1-rc Apr 21, 2020
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.

5 participants