Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c27c0d96 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "WindowManager: Disable rotation for BootAnimation screen"

parents 4116f132 b85c59b2
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -95,6 +95,7 @@ import android.os.SystemProperties;
import android.os.Trace;
import android.os.Trace;
import android.os.UserHandle;
import android.os.UserHandle;
import android.os.WorkSource;
import android.os.WorkSource;
import android.os.SystemService;
import android.provider.Settings;
import android.provider.Settings;
import android.util.DisplayMetrics;
import android.util.DisplayMetrics;
import android.util.EventLog;
import android.util.EventLog;
@@ -6350,6 +6351,10 @@ public class WindowManagerService extends IWindowManager.Stub
            return false;
            return false;
        }
        }


        if(SystemService.isRunning("bootanim")) {
            return false;
        }

        ScreenRotationAnimation screenRotationAnimation =
        ScreenRotationAnimation screenRotationAnimation =
                mAnimator.getScreenRotationAnimationLocked(Display.DEFAULT_DISPLAY);
                mAnimator.getScreenRotationAnimationLocked(Display.DEFAULT_DISPLAY);
        if (screenRotationAnimation != null && screenRotationAnimation.isAnimating()) {
        if (screenRotationAnimation != null && screenRotationAnimation.isAnimating()) {