From ba43ffda887a77e620ec187a4763a7693ce756c6 Mon Sep 17 00:00:00 2001 From: Ryan <102423466+50t0r25@users.noreply.github.com> Date: Sat, 30 Apr 2022 13:27:26 +0100 Subject: [PATCH] Fixed username not displaying correctly in user info --- app/src/main/java/dz/notacompany/riide/UserInfoFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/dz/notacompany/riide/UserInfoFragment.kt b/app/src/main/java/dz/notacompany/riide/UserInfoFragment.kt index 0f1b0b6..ae21766 100644 --- a/app/src/main/java/dz/notacompany/riide/UserInfoFragment.kt +++ b/app/src/main/java/dz/notacompany/riide/UserInfoFragment.kt @@ -237,9 +237,9 @@ class UserInfoFragment(private val userID: String) : Fragment(R.layout.fragment_ // Fetching all user data and setting them in the fields db.collection("users").document(userID).get() .addOnSuccessListener { user -> - val localUsername = "Username: ".plus(user.data!!["username"].toString()) + val localUsername = user.data!!["username"].toString() val filledInfo = user.data!!["filledInfo"].toString().toBoolean() - username.text = localUsername + username.text = "Username: ".plus(localUsername) email.text = "Email: ".plus(user.data!!["email"].toString()) infoTitle.text = localUsername.plus("'s contact info:")