Skip to content

Conversation

@shpp-vsmaga
Copy link
Contributor

Hello. I found one more little bug - I use your view in few places of my application and recently found that delete button don't work (visible bun not delete numbers) when PinLockView placed in fragment what placed in view pager. In this case - method of RecyclerViewAdapter onBindViewHolder called many times and all business logic (like OnClickListeners and others) placed in ViewHolder class stop to work. Definitely it's not good idea to place any business logic in ViewHolder class, it must be used only to store inflated views and no more.. Due to RecyclerView's lifecycle all business logic must be implemented in onBindViewHolder() for correct work. In my commit I moved all your business logic from constructors of ViewHolders to methods called from onBindViewHolder. Please check my changes and merge it. Thank you for your beautiful library.

…e to RecyclerView lifecycle to fix bugwith delete button when PinLockView placed in ViewPager
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.

1 participant