mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-21 22:27:29 +00:00
close #1667
This commit is contained in:
parent
4641fe27dc
commit
10bc98125c
@ -477,7 +477,7 @@ class ProfileFragment : Fragment(), OnRefreshListener, ConfirmDialogFragmentCall
|
|||||||
setupFavChip(profile, currentUser)
|
setupFavChip(profile, currentUser)
|
||||||
setupFavButton(currentUser, profile)
|
setupFavButton(currentUser, profile)
|
||||||
setupSavedButton(currentUser, profile)
|
setupSavedButton(currentUser, profile)
|
||||||
setupTaggedButton(currentUser, profile)
|
setupTaggedButton(profile)
|
||||||
setupLikedButton(currentUser, profile)
|
setupLikedButton(currentUser, profile)
|
||||||
setupDMButton(currentUser, profile)
|
setupDMButton(currentUser, profile)
|
||||||
if (profile == null) return@observe
|
if (profile == null) return@observe
|
||||||
@ -755,8 +755,8 @@ class ProfileFragment : Fragment(), OnRefreshListener, ConfirmDialogFragmentCall
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupTaggedButton(currentUser: User?, profile: User?) {
|
private fun setupTaggedButton(profile: User?) {
|
||||||
val visibility = if (currentUser != null && profile?.pk == currentUser.pk) View.VISIBLE else View.GONE
|
val visibility = if (profile?.usertagsCount == 0L) View.GONE else View.VISIBLE
|
||||||
binding.header.btnTagged.visibility = visibility
|
binding.header.btnTagged.visibility = visibility
|
||||||
if (visibility == View.GONE) {
|
if (visibility == View.GONE) {
|
||||||
binding.header.btnTagged.setOnClickListener(null)
|
binding.header.btnTagged.setOnClickListener(null)
|
||||||
|
Loading…
Reference in New Issue
Block a user