Skip to content

Commit

Permalink
#57: Add toast message (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal2376 committed Sep 16, 2023
1 parent 482b597 commit da66315
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ class GalleryFragment :
layoutSelected.isVisible = selectingEnabled
fabStartSelect.isVisible = !selectingEnabled

removeResourceFab.setOnClickListener {
Toast.makeText(
requireContext(),
"Press and hold to delete",
Toast.LENGTH_SHORT
).show()
}

removeResourceFab.setOnLongClickListener {
val time = measureTimeMillis {
presenter.onRemoveFabClick()
Expand Down

0 comments on commit da66315

Please sign in to comment.