From 955b41aabab93e0c6d376a8fc13e6c18895985cd Mon Sep 17 00:00:00 2001 From: ethanblake4 Date: Mon, 27 Nov 2017 00:09:56 -0800 Subject: [PATCH] Fix: use firstRequestedOrientation in fallthrough case (flutter/engine#4392) --- .../android/io/flutter/plugin/platform/PlatformPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java index fdb85a6709..2e02e85acf 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java @@ -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;