-
Notifications
You must be signed in to change notification settings - Fork 552
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
Divide OnUpdateListener in two diferentes Listener #10
Comments
Hello @danielpassos, during the development I also thought to divide the listeners, but in the end I opted for 1 only. I can separate them again now. |
I agree with that, I'll put it back in my PR, but pass a |
Wait to change the PR. |
Done. I put it back as
Not sure if I got you point here. |
I mean to pass the listener to this function: public void startUndoTimer(final OnDeleteCompleteListener listener, long timeout) {
mHandler = new Handler(Looper.getMainLooper(), new Handler.Callback() {
public boolean handleMessage(Message message) {
if (listener != null) listener.onDeleteConfirmed();
...
}
});
...
} |
Gotcha. Must better and done! :) |
@danielpassos, so about |
I totally agree with you but we need to keep in mind it will broke the old project/compatibility. I know it's sucks, but it's a library and what we do in libraries/frameworks is:
|
Indeed it will break compatibility, but before release as major version, I wanted to add new functionalities, such as animation on loading. I already know how to do it, maybe multi ViewHolder, fix the way how ItemAnimator are used, use or import a nice SearchView, that I have identified, in the example App. |
You can release a small version bumping |
Sometimes you want track
onDeleteConfirmed
but not necessarilyonLoadComplete
and vice and versaThe text was updated successfully, but these errors were encountered: