aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'androidApp/src/main/java')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt
index c895f31..2be6da3 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt
@@ -1,6 +1,7 @@
package mx.trackermap.TrackerMap.android.units
import android.os.Bundle
+import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.widget.doAfterTextChanged
import androidx.fragment.app.commit
@@ -33,13 +34,19 @@ class UnitsActivity : AppCompatActivity() {
}
private fun setupEvents() {
+ binding.profileButton.setOnClickListener {
+ Log.d("UnitsActivity", "Profile tapped")
+ }
binding.displayModeToggle.setOnClickListener {
+ Log.d("UnitsActivity", "Units display toggle tapped")
unitsViewModel.toggleDisplayMode()
}
binding.searchInput.doAfterTextChanged {
+ Log.d("UnitsActivity", "Search changed to ${it.toString()}")
unitsViewModel.searchQuery.value = it.toString()
}
binding.searchInput.setOnEditorActionListener { _, _, _ ->
+ Log.d("UnitsActivity", "Search key tapped")
unitsViewModel.search()
true
}