aboutsummaryrefslogtreecommitdiff
path: root/androidApp
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-16 03:10:07 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-16 03:10:07 -0600
commitf05e413fc925be4ac225c05b49bc0b8930af9e10 (patch)
tree882e105af8eb53673f118711e6d6353abfe26e7a /androidApp
parentdf56691115c151bf7bf675017fe6b826c55a1439 (diff)
downloadetbsa-trackermap-mobile-f05e413fc925be4ac225c05b49bc0b8930af9e10.tar.gz
etbsa-trackermap-mobile-f05e413fc925be4ac225c05b49bc0b8930af9e10.tar.bz2
etbsa-trackermap-mobile-f05e413fc925be4ac225c05b49bc0b8930af9e10.zip
Change onClickListener to onLongClickListener for DevicesAdapter.kt
Diffstat (limited to 'androidApp')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/devices/DevicesAdapter.kt3
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
}
}