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
commita57288f84650227459eed2aa6572cd0447f3278e (patch)
treee4ba68170c295f911defdc7e226e2c00c7ef7220 /androidApp
parent5e880f5c71f91830e6a463bbcbf7e52151d9f0c7 (diff)
downloadetbsa-trackermap-mobile-a57288f84650227459eed2aa6572cd0447f3278e.tar.gz
etbsa-trackermap-mobile-a57288f84650227459eed2aa6572cd0447f3278e.tar.bz2
etbsa-trackermap-mobile-a57288f84650227459eed2aa6572cd0447f3278e.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
}
}