Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Hide context buttons when the action is canceled (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Sep 3, 2019
1 parent 42fc886 commit e6ceadd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ public BookmarkViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int view
case MotionEvent.ACTION_DOWN:
binding.setIsHovered(true);
return false;

case MotionEvent.ACTION_CANCEL:
binding.setIsHovered(false);
return false;
}
return false;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ public HistoryItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int v
case MotionEvent.ACTION_DOWN:
binding.setIsHovered(true);
return false;

case MotionEvent.ACTION_CANCEL:
binding.setIsHovered(false);
return false;
}
return false;
});
Expand Down

0 comments on commit e6ceadd

Please sign in to comment.