diff --git a/app/src/main/java/com/kaixed/kchat/ui/fragment/MineFragment.kt b/app/src/main/java/com/kaixed/kchat/ui/fragment/MineFragment.kt index 6e4f6be..e748fe4 100644 --- a/app/src/main/java/com/kaixed/kchat/ui/fragment/MineFragment.kt +++ b/app/src/main/java/com/kaixed/kchat/ui/fragment/MineFragment.kt @@ -14,8 +14,6 @@ import com.kaixed.kchat.ui.base.BaseFragment import com.kaixed.kchat.utils.ConstantsUtil import com.kaixed.kchat.utils.ConstantsUtil.getAvatarUrl import com.kaixed.kchat.utils.ConstantsUtil.getUsername -import com.kaixed.kchat.utils.TextUtil -import org.greenrobot.eventbus.EventBus class MineFragment : BaseFragment() { @@ -51,8 +49,7 @@ class MineFragment : BaseFragment() { binding.tvNickname.text = nickname val kid = "kid: ${getUsername()}" binding.tvId.text = kid - val avatarUrl = TextUtil.extractDimensionsAndPrefix(getAvatarUrl())?.first - Glide.with(requireContext()).load(avatarUrl) + Glide.with(requireContext()).load(getAvatarUrl()) .placeholder(R.drawable.ic_default_avatar) .error(R.drawable.ic_default_avatar) .into(binding.ifvAvatar)