Skip to content

Commit

Permalink
[Catalog] Fix issue with forcing orientation for portrait-only demos …
Browse files Browse the repository at this point in the history
…forcing orientation for all demos

PiperOrigin-RevId: 687440176
  • Loading branch information
imhappi authored and kendrickumstattd committed Oct 22, 2024
1 parent 39be13c commit 3eb9178
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ public View onCreateDemoView(
}
return v;
}

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

0 comments on commit 3eb9178

Please sign in to comment.