This repository has been archived by the owner on May 8, 2023. It is now read-only.
Clean up reaction bottom sheet #135
Labels
Type: Enhancement
Not a feature, but will improve the product in one way or another.
Milestone
The current reaction bottom sheet uses a
BottomSheetBehavior
. It has apeek_height
to allow it to be swiped up. Because we want the peekheight area to also be filled with reaction items, the bottom sheet has a height that is larger than the screen. TheCoordinatorLayout
in which it exists pops up above the screen border so the bottom sheet can slide up until the peek height area is above the screen. As a result the entire area we wish to display reactions in will be filled with reaction items.Another issue is that the bottom sheet can be swiped down to be removed. If we detect a state change to
STATE_HIDDEN
, we simply push it back up again so the peek height area is visible again. If we don't do this, we aren't able to swipe the reactions up again after swiping down the peek area.The text was updated successfully, but these errors were encountered: