From 38696edd58bd6fc7fb8f08cf8586b9db6ddfa1f8 Mon Sep 17 00:00:00 2001 From: BlueMatthew Date: Fri, 23 Feb 2024 09:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9A=84=E6=96=B9=E5=90=91?= =?UTF-8?q?=E5=92=8C=E5=BD=93=E5=89=8Dapp=E7=9A=84=E6=96=B9=E5=90=91?= =?UTF-8?q?=E6=97=A0=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/xypower/mpapp/video/VideoFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/xypower/mpapp/video/VideoFragment.java b/app/src/main/java/com/xypower/mpapp/video/VideoFragment.java index 5c083535..4599c8f0 100644 --- a/app/src/main/java/com/xypower/mpapp/video/VideoFragment.java +++ b/app/src/main/java/com/xypower/mpapp/video/VideoFragment.java @@ -685,7 +685,8 @@ public class VideoFragment extends Fragment implements View.OnClickListener, Med if (mOrientation != -1) { orientationAdjustment = mOrientation / 90; } - int rotation = (activity.getWindowManager().getDefaultDisplay().getRotation() + orientationAdjustment) % 4; + int rotation = activity.getWindowManager().getDefaultDisplay().getRotation(); + rotation = orientationAdjustment % 4; int orientationHint = 0; switch (mSensorOrientation) { case SENSOR_ORIENTATION_DEFAULT_DEGREES: