Skip to content

bugfix Flipboard/bottomsheet#134#135

Open
odyodyodys wants to merge 1 commit into
Flipboard:masterfrom
odyodyodys:master
Open

bugfix Flipboard/bottomsheet#134#135
odyodyodys wants to merge 1 commit into
Flipboard:masterfrom
odyodyodys:master

Conversation

@odyodyodys

Copy link
Copy Markdown

This is to address #134 that makes it impossible to attach state handlers to the later view when switching bottomsheet views (calling showWithSheetView when there is already a view in peek or expanded states)

// Remove sheet specific properties
viewTransformer = null;
onSheetDismissedListeners.clear();
onSheetStateChangeListeners.clear();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this makes sense. We'll have to update the documentation to make it clear that callers need to remove their listeners. We should also mention that in the change log.

@meierjan

meierjan commented Jul 7, 2016

Copy link
Copy Markdown
Contributor

@odyodyodys will you work on this?

@ZacSweers

Copy link
Copy Markdown
Contributor

We could fold this in as part of #122 if I could get some reviewers

@odyodyodys

Copy link
Copy Markdown
Author

@meierjan not at the moment sorry but is there more to do? For me this 1 line change is enough.

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.

4 participants