Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Conversation

@rubensousa
Copy link

The open/close methods in the DrawerBehavior class don't require any arguments (parent and child views). I had to switch the SimpleArrayMap to an ArrayMap to allow this, since we couldn't iterate through the delegates.
Is there any special reason for storing multiple BehaviorDelegates though? The DrawerBehavior class is instantiated for each view that sets the behavior programmatically or by XML, so why assume there's multiple views with delegates?

@JakeWharton
Copy link
Owner

Is there any special reason for storing multiple BehaviorDelegates though?

Pre-dates open sourcing when it was being used for multiple views at once. The assumption can be removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants