Fix display name bug

This commit is contained in:
nielsandriesse 2020-09-08 15:17:29 +10:00
parent eafd4bf557
commit 28db2a79a5

View File

@ -28,7 +28,7 @@ public class UserDetailsBottomSheet : BottomSheetDialogFragment() {
profilePictureView.glide = GlideApp.with(this)
profilePictureView.isLarge = true
profilePictureView.update()
nameTextView.text = DatabaseFactory.getLokiUserDatabase(requireContext()).getDisplayName(publicKey) ?: publicKey
nameTextView.text = DatabaseFactory.getLokiUserDatabase(requireContext()).getDisplayName(publicKey) ?: "Anonymous"
publicKeyTextView.text = publicKey
copyButton.setOnClickListener {
val clipboard = requireContext().getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager