Bug 1410534 - Correctly lock screen orientation in standalone mode r=droeh
authorJames Willcox <snorp@snorp.net>
Fri, 20 Oct 2017 16:20:11 -0500
changeset 440773 127062c860f061dde16f350d87cf013913157df3
parent 440742 1758c184cf017a45d58e3368377ce718262020e7
child 440774 f957700d514ad3fd5dd45fa1f4bf400d4b99f79c
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdroeh
bugs1410534
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1410534 - Correctly lock screen orientation in standalone mode r=droeh Differential Revision: https://phabricator.services.mozilla.com/D147 MozReview-Commit-ID: 4XFkgT9mqIB
mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/webapps/WebAppActivity.java
@@ -231,17 +231,17 @@ public class WebAppActivity extends AppC
         final String orientString = mManifest.getOrientation();
         if (orientString == null) {
             return;
         }
 
         final GeckoScreenOrientation.ScreenOrientation orientation =
             GeckoScreenOrientation.screenOrientationFromString(orientString);
         final int activityOrientation =
-            GeckoScreenOrientation.screenOrientationToAndroidOrientation(orientation);
+            GeckoScreenOrientation.screenOrientationToActivityInfoOrientation(orientation);
 
         setRequestedOrientation(activityOrientation);
     }
 
     private void updateDisplayMode() {
         final String displayMode = mManifest.getDisplayMode();
 
         updateFullScreenMode(displayMode.equals("fullscreen"));