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

Initialization for Context-constructor #61

Open
iamthevoid opened this issue Jul 21, 2019 · 2 comments
Open

Initialization for Context-constructor #61

iamthevoid opened this issue Jul 21, 2019 · 2 comments

Comments

@iamthevoid
Copy link

Please add

init(context, null)

to the base constructor with Context argument only in class IndexFastScrollRecyclerView

@myinnos
Copy link
Owner

myinnos commented Aug 12, 2019

Please, can you explain in detail why it's required and the purpose?

@iamthevoid
Copy link
Author

@myinnos Sure. I am using it with anko in DSL and using default constructor like this

inline fun ViewManager.indexRecyclerView(theme: Int = 0, init: IndexFastScrollRecyclerView.() -> Unit = {}) =
        ankoView({ IndexFastScrollRecyclerView(it) }, theme, init)

And initialization sequence doesn't happens.

@myinnos myinnos pinned this issue Aug 12, 2019
@myinnos myinnos unpinned this issue May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants