We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c964e7 + d5be055 commit 7bf70ddCopy full SHA for 7bf70dd
core/java/android/webkit/DeviceOrientationService.java
@@ -123,7 +123,7 @@ private void getOrientationUsingGetRotationMatrix() {
123
// The angles are in radians
124
float[] rotationAngles = new float[3];
125
SensorManager.getOrientation(deviceRotationMatrix, rotationAngles);
126
- double alpha = Math.toDegrees(-rotationAngles[0]) - 90.0;
+ double alpha = Math.toDegrees(-rotationAngles[0]);
127
while (alpha < 0.0) { alpha += 360.0; } // [0, 360)
128
double beta = Math.toDegrees(-rotationAngles[1]);
129
while (beta < -180.0) { beta += 360.0; } // [-180, 180)
0 commit comments