diff --git a/app/src/main/java/de/westnordost/streetcomplete/screens/user/profile/ProfileFragment.kt b/app/src/main/java/de/westnordost/streetcomplete/screens/user/profile/ProfileFragment.kt index 7c5ad64a91..e6fd877a9e 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/screens/user/profile/ProfileFragment.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/screens/user/profile/ProfileFragment.kt @@ -241,7 +241,10 @@ class ProfileFragment : Fragment(R.layout.fragment_profile) { } private fun updateGlobalRankText(rank: Int, previousRank: Int, container: View, circle: TextView ) { - container.isGone = rank <= 0 || statisticsSource.getEditCount() <= 100 + val shouldHide = rank <= 0 || statisticsSource.getEditCount() <= 100 + container.isGone = shouldHide + if (shouldHide) return + val updateRank = { r: Int -> circle.text = "#$r" circle.background.level = getScaledGlobalRank(r)