package ml.docilealligator.infinityforreddit.customviews; import android.view.View; import com.google.android.material.bottomsheet.BottomSheetBehavior; import com.google.android.material.bottomsheet.BottomSheetDialogFragment; public class LandscapeExpandedBottomSheetDialogFragment extends BottomSheetDialogFragment { @Override public void onStart() { super.onStart(); View parentView = (View) requireView().getParent(); BottomSheetBehavior.from(parentView).setState(BottomSheetBehavior.STATE_EXPANDED); BottomSheetBehavior.from(parentView).setSkipCollapsed(true); } }