aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-11 18:05:27 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-11 18:05:27 -0600
commit7baad408f97d7d4ab512b822bdc0799469e2d496 (patch)
treea549511cea060a328a76a285aa275fd342b3dec3 /androidApp/src/main/java/mx/trackermap
parent7734d6f38ec5835960493e8fc97edfe89f724105 (diff)
downloadetbsa-trackermap-mobile-7baad408f97d7d4ab512b822bdc0799469e2d496.tar.gz
etbsa-trackermap-mobile-7baad408f97d7d4ab512b822bdc0799469e2d496.tar.bz2
etbsa-trackermap-mobile-7baad408f97d7d4ab512b822bdc0799469e2d496.zip
Minor layout improvements
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/units/UnitsActivity.kt11
1 files changed, 7 insertions, 4 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 9598077..409919a 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
@@ -39,21 +39,24 @@ class UnitsActivity : AppCompatActivity() {
private fun setupEvents() {
binding.drawerButton.setOnClickListener {
- binding.drawerLayout.openDrawer(Gravity.LEFT)
+ binding.drawerLayout.openDrawer(binding.navigationView)
}
binding.navigationView.setNavigationItemSelectedListener {
when (it.itemId) {
R.id.nav_account -> {
Toast.makeText(this, "Account button tapped!", Toast.LENGTH_SHORT).show()
- true
+ binding.drawerLayout.closeDrawers()
+ false
}
R.id.nav_about -> {
Toast.makeText(this, "About button tapped!", Toast.LENGTH_SHORT).show()
- true
+ binding.drawerLayout.closeDrawers()
+ false
}
R.id.nav_logout -> {
Toast.makeText(this, "Logout button tapped!", Toast.LENGTH_SHORT).show()
- true
+ binding.drawerLayout.closeDrawers()
+ false
}
else -> false
}