Skip to content

Commit

Permalink
[Catalog] Applied edge-to-edge to bottom sheet in Carousel demo
Browse files Browse the repository at this point in the history
Resolves #3505
Resolves #3504

GIT_ORIGIN_REV_ID=7bdf0989eac11e9b496dd38e9e6fda8acae3b593
PiperOrigin-RevId: 555208372
  • Loading branch information
manabu-nakamura authored and dsn5ft committed Aug 9, 2023
1 parent 02dc779 commit 6c2dd5d
Showing 1 changed file with 4 additions and 0 deletions.
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 Down Expand Up @@ -65,6 +66,9 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle bundle) {
// Opt in to perform swipe to dismiss animation when dismissing bottom sheet dialog.
bottomSheetDialog.setDismissWithAnimation(true);

new WindowPreferencesManager(requireContext())
.applyEdgeToEdgePreference(bottomSheetDialog.getWindow());

verticalDivider =
new MaterialDividerItemDecoration(
requireContext(), MaterialDividerItemDecoration.VERTICAL);
Expand Down

0 comments on commit 6c2dd5d

Please sign in to comment.