Skip to content

Commit

Permalink
Add comment for the bug where the BottomSheet can be a TopSheet
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Apr 9, 2024
1 parent 066e144 commit 68b54ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/infomaniak/drive/utils/PreviewUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ fun Activity.setupBottomSheetFileBehavior(
bottomSheetBehavior.apply {
isHideable = true
this.isDraggable = isDraggable
// This need to be true for ExternalFileInfoActionsView, otherwise, the BottomSheet can go to
// the top of the screen (see Trello card eUJkzgDU). We need to remove this.
this.isFitToContents = isFitToContents
addBottomSheetCallback(object : BottomSheetBehavior.BottomSheetCallback() {
override fun onStateChanged(bottomSheet: View, newState: Int) {
Expand Down

0 comments on commit 68b54ff

Please sign in to comment.