aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap/android/units
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
commit64edb0466aae0f920b6a9d6c01c142e1207ae5b1 (patch)
tree1b9fb4e4613e317983a84f6a9089efa7157928fd /androidApp/src/main/java/mx/trackermap/TrackerMap/android/units
parent14dff03d1d705722d8184724f296deff557a3014 (diff)
downloadetbsa-trackermap-mobile-64edb0466aae0f920b6a9d6c01c142e1207ae5b1.tar.gz
etbsa-trackermap-mobile-64edb0466aae0f920b6a9d6c01c142e1207ae5b1.tar.bz2
etbsa-trackermap-mobile-64edb0466aae0f920b6a9d6c01c142e1207ae5b1.zip
Adds the profile button
It doesn't do anything atm...
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/units')
-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
}