Skip to content

Commit 54d2c8b

Browse files
manabu-nakamuradsn5ft
authored andcommitted
[Catalog][Carousel] Fix issue with locked orientation with fullscreen carousel
Resolves #3835 Resolves #3834 GIT_ORIGIN_REV_ID=da20780aaf0dcd4ca6abb6cf2dc7107342c2eb53 PiperOrigin-RevId: 582497746
1 parent 198e08c commit 54d2c8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ public View onCreateDemoView(
6262
R.layout.cat_carousel_full_screen_fragment, viewGroup, false /* attachToRoot */);
6363
}
6464

65+
@Override
66+
public void onDestroyView() {
67+
super.onDestroyView();
68+
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
69+
}
70+
6571
@Override
6672
@SuppressWarnings("RestrictTo")
6773
public void onViewCreated(@NonNull View view, @Nullable Bundle bundle) {

0 commit comments

Comments
 (0)