Fix: use firstRequestedOrientation in fallthrough case (flutter/engine#4392)

This commit is contained in:
ethanblake4
2017-11-27 00:09:56 -08:00
committed by Ian Hickson
parent b97185b2ca
commit 955b41aaba

View File

@@ -144,7 +144,7 @@ public class PlatformPlugin implements MethodCallHandler, ActivityLifecycleListe
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;