Skip to content

Commit

Permalink
Fix: use firstRequestedOrientation in fallthrough case (flutter#4392)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanblake4 authored and Hixie committed Nov 27, 2017
1 parent 921872c commit 3f3d174
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private void setSystemChromePreferredOrientations(JSONArray orientations) throws
case 0x0e: // portraitDown, landscapeLeft, and landscapeRight
// Android can't describe these cases, so just default to whatever the first
// specified value was.
switch (requestedOrientation) {
switch (firstRequestedOrientation) {
case 0x01:
mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
break;
Expand Down

0 comments on commit 3f3d174

Please sign in to comment.