From abcf0ba873fb28f8a8ecf773178da7b1f0f4401f Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sun, 16 Jan 2022 19:22:39 -0600 Subject: Fixed hide of device limit when device limit <= 0 --- .../TrackerMap/android/session/UserInformationActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'androidApp/src/main/java/mx') 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 } } } -- cgit v1.2.3