I've designed my bottom sheet like this
<style name="ShapeAppearanceOverlay.BottomSheet" parent="">
<item name="cornerSize">30dp</item>
<item name="cornerFamily">rounded</item>
</style>
And it works fine my bottom sheet comes up with 30dp corner radius, however if I push slide up on my bottom sheet the corner flattens out, How can I prevent this from happening?

