Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. private boolean isSorted = false;
  2.  
  3. holder.borrar.setOnClickListener(new View.OnClickListener() {
  4. @Override
  5. public void onClick(View v) {
  6. if(isSorted) {
  7. //do what you want to do after it is sorted.
  8. }
  9. }
  10. });
  11.  
  12. ...
  13. //Updating flag based on condition
  14. if(condition) {
  15. isSorted = true;
  16. }
  17. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement