Skip to content

Commit 6c2dd5d

Browse files
manabu-nakamuradsn5ft
authored andcommitted
[Catalog] Applied edge-to-edge to bottom sheet in Carousel demo
Resolves #3505 Resolves #3504 GIT_ORIGIN_REV_ID=7bdf0989eac11e9b496dd38e9e6fda8acae3b593 PiperOrigin-RevId: 555208372
1 parent 02dc779 commit 6c2dd5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

catalog/java/io/material/catalog/carousel/FullScreenStrategyDemoFragment.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import com.google.android.material.slider.Slider;
3939
import com.google.android.material.slider.Slider.OnSliderTouchListener;
4040
import io.material.catalog.feature.DemoFragment;
41+
import io.material.catalog.windowpreferences.WindowPreferencesManager;
4142

4243
/** A fragment that displays the fullscreen variant of the Carousel. */
4344
public class FullScreenStrategyDemoFragment extends DemoFragment {
@@ -65,6 +66,9 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle bundle) {
6566
// Opt in to perform swipe to dismiss animation when dismissing bottom sheet dialog.
6667
bottomSheetDialog.setDismissWithAnimation(true);
6768

69+
new WindowPreferencesManager(requireContext())
70+
.applyEdgeToEdgePreference(bottomSheetDialog.getWindow());
71+
6872
verticalDivider =
6973
new MaterialDividerItemDecoration(
7074
requireContext(), MaterialDividerItemDecoration.VERTICAL);

0 commit comments

Comments
 (0)