diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractBottomSheetFragment.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractBottomSheetFragment.kt index 2774e0ec21..f0c4953d5e 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractBottomSheetFragment.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/AbstractBottomSheetFragment.kt @@ -161,8 +161,7 @@ abstract class AbstractBottomSheetFragment : Fragment(), IsCloseableBottomSheet private fun updateCloseButtonVisibility() { // this is called asynchronously. It may happen that the activity is already gone when this // method is finally called - val speechBubbleTopMargin = resources.getDimension(R.dimen.quest_form_speech_bubble_top_margin) - val coversToolbar = bottomSheet.top < speechBubbleTopMargin + val coversToolbar = bottomSheet.top <= 0 closeButton.visibility = if (coversToolbar) View.VISIBLE else View.INVISIBLE }