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

AnimatorChangeHandler w/ removesFromViewOnPush=false breaks when popping multiple transactions #239

Closed
tomblenz opened this issue Feb 26, 2017 · 4 comments

Comments

@tomblenz
Copy link

Reproduction:

  1. Start with RootController, push Controller1 and Controller2 using new HorizontalChangeHandler(false) as push/pop change handlers (or any other AnimatorChangeHandler)
  2. Call getRouter().popToRoot() on Controller2

Expected: Controller1 and Controller2 are popped and their views are removed.

Actual: Controller1 and Controller2 are popped but only Controller2's views are removed. Controller1's views remain on screen.

Attachments

  1. Screenshot showing MainActivity's router backstack after popToRoot, verifying that only RootController exists.
    screen shot 2017-02-27 at 9 50 52 am

  2. Screenshot showing the inspected layout after popToRoot, showing that RootController and Controller1's views are inflated, while Controller2's views were removed from the container.
    screen shot 2017-02-27 at 10 04 10 am

  3. Reproduction project
    ChangeHandlerConductorBug.zip

@sockeqwe
Copy link
Contributor

This is a world class bug report! Well done! I wish more people would take the time to file such bug reports! 👍

@tomblenz
Copy link
Author

You took the time to make this framework, I think it's the least we can do :)

@sockeqwe
Copy link
Contributor

No it wasn't me, all credits to @EricKuck

@EricKuck
Copy link
Member

EricKuck commented Mar 1, 2017

Thanks for the great bug report. This should now be fixed in the latest snapshot.

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

No branches or pull requests

3 participants