Skip to content

Commit

Permalink
[Catalog][Carousel] Fix issue with locked orientation with fullscreen…
Browse files Browse the repository at this point in the history
… carousel

Resolves #3835
Resolves #3834

GIT_ORIGIN_REV_ID=da20780aaf0dcd4ca6abb6cf2dc7107342c2eb53
PiperOrigin-RevId: 582497746
  • Loading branch information
manabu-nakamura authored and dsn5ft committed Nov 15, 2023
1 parent 198e08c commit 54d2c8b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ public View onCreateDemoView(
R.layout.cat_carousel_full_screen_fragment, viewGroup, false /* attachToRoot */);
}

@Override
public void onDestroyView() {
super.onDestroyView();
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
}

@Override
@SuppressWarnings("RestrictTo")
public void onViewCreated(@NonNull View view, @Nullable Bundle bundle) {
Expand Down

0 comments on commit 54d2c8b

Please sign in to comment.