Skip to content

Commit

Permalink
HMA-6727 action button visibility fixes (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmaatkins authored Mar 27, 2023
1 parent 80e72f7 commit a11bf4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Allowed headings:

## [Unreleased]

### Fixed

* `EditableListView` action button visibility fixes.

## [4.5.3] - 2023-03-08

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ class EditableListViewAdapter : RecyclerView.Adapter<EditableListViewAdapter.Vie

if (isEditEnabled) {
motionLayout.transitionToEnd()
actionButton.isVisible = true
itemView.setOnClickListener { result.onClickListener(adapterPosition) }
actionButton.setOnClickListener { result.onClickListener(adapterPosition) }
firstPass = false
} else {
itemView.isClickable = false
actionButton.isClickable = false
actionButton.isVisible = false
motionLayout.transitionToStart()
}
}
Expand Down

0 comments on commit a11bf4d

Please sign in to comment.