Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean isSorted = false;
- holder.borrar.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- if(isSorted) {
- //do what you want to do after it is sorted.
- }
- }
- });
- ...
- //Updating flag based on condition
- if(condition) {
- isSorted = true;
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement