Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import com.google.android.material.slider.Slider;
import com.google.android.material.slider.Slider.OnSliderTouchListener;
import io.material.catalog.feature.DemoFragment;
import io.material.catalog.windowpreferences.WindowPreferencesManager;

/** A fragment that displays the fullscreen variant of the Carousel. */
public class FullScreenStrategyDemoFragment extends DemoFragment {
Expand All @@ -64,6 +65,7 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle bundle) {
bottomSheetDialog.setContentView(R.layout.cat_carousel_bottom_sheet_contents);
// Opt in to perform swipe to dismiss animation when dismissing bottom sheet dialog.
bottomSheetDialog.setDismissWithAnimation(true);
new WindowPreferencesManager(requireContext()).applyEdgeToEdgePreference(bottomSheetDialog.getWindow());

horizontalDivider =
new MaterialDividerItemDecoration(
Expand Down