aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2021-12-15 00:42:08 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2021-12-15 00:42:08 -0600
commitae8733682d89098348bd3d880f85028cb1bc2b6b (patch)
tree1a9e38a1db3578cceb784327602f5f164946712e /androidApp/src/main/java/mx/trackermap/TrackerMap
parent2388d1873850191252854626f942692cc9696bb5 (diff)
downloadetbsa-trackermap-mobile-ae8733682d89098348bd3d880f85028cb1bc2b6b.tar.gz
etbsa-trackermap-mobile-ae8733682d89098348bd3d880f85028cb1bc2b6b.tar.bz2
etbsa-trackermap-mobile-ae8733682d89098348bd3d880f85028cb1bc2b6b.zip
Adds the profile button
It doesn't do anything atm...
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap')
-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
}