diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-16 03:10:07 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-16 03:10:07 -0600 |
commit | a57288f84650227459eed2aa6572cd0447f3278e (patch) | |
tree | e4ba68170c295f911defdc7e226e2c00c7ef7220 | |
parent | 5e880f5c71f91830e6a463bbcbf7e52151d9f0c7 (diff) | |
download | etbsa-trackermap-mobile-a57288f84650227459eed2aa6572cd0447f3278e.tar.gz etbsa-trackermap-mobile-a57288f84650227459eed2aa6572cd0447f3278e.tar.bz2 etbsa-trackermap-mobile-a57288f84650227459eed2aa6572cd0447f3278e.zip |
Change onClickListener to onLongClickListener for DevicesAdapter.kt
-rw-r--r-- | androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesAdapter.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesAdapter.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesAdapter.kt index dd7333d..c54e8bf 100644 --- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesAdapter.kt +++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesAdapter.kt @@ -88,8 +88,9 @@ class DevicesAdapter( inner class ViewHolder(val binding: UnitItemBinding) : RecyclerView.ViewHolder(binding.root) { init { - binding.unitCard.setOnClickListener { + binding.unitCard.setOnLongClickListener { toggleOptions(binding.itemOptions.visibility == View.GONE) + true } } |