Skip to content

Commit

Permalink
fix X button on bottom sheet was not shown anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed May 14, 2020
1 parent 16c8a6a commit cfd8e6e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cfd8e6e

Please sign in to comment.