aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-16 19:22:39 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-16 19:22:39 -0600
commitf88add3dbf4cafb39b8720efdecb53087e2bc285 (patch)
tree8feedc9058bef26b61f836e99d72eb987af2235a /androidApp/src/main/java/mx/trackermap
parent33e051ae011471e3472a69d405f805319d25bd70 (diff)
downloadetbsa-trackermap-mobile-f88add3dbf4cafb39b8720efdecb53087e2bc285.tar.gz
etbsa-trackermap-mobile-f88add3dbf4cafb39b8720efdecb53087e2bc285.tar.bz2
etbsa-trackermap-mobile-f88add3dbf4cafb39b8720efdecb53087e2bc285.zip
Fixed hide of device limit when device limit <= 0
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/session/UserInformationActivity.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/session/UserInformationActivity.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/session/UserInformationActivity.kt
index a3c6fd6..dababb5 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/session/UserInformationActivity.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/session/UserInformationActivity.kt
@@ -62,12 +62,12 @@ class UserInformationActivity : AppCompatActivity() {
usernameInfo.text = user.name ?: ""
emailInfo.text = user.email ?: ""
idInfo.text = "${user.id ?: "--"}"
- deviceLimitInfo.text = "${user.deviceLimit ?: "--"}"
adminInfo.text = "${user.administrator}"
user.deviceLimit?.let {
- if (it <= 0) {
- adminInfoLabel.visibility = View.GONE
- adminInfo.visibility = View.GONE
+ deviceLimitInfo.text = "${user.deviceLimit ?: "--"}"
+ if (it > 0) {
+ deviceLimitInfo.visibility = View.VISIBLE
+ deviceLimitInfo.visibility = View.VISIBLE
}
}
}