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

Commit 877abaa7 authored by Kshitij's avatar Kshitij
Browse files

base: wm: Set screen rotation backdrop to black

- AOSP calculates luma of the screenshots to pick a greyscale
  colour for the backdrop.
- We would like this to be fixed to a black color
parent 6036cf72
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -714,8 +714,8 @@ class ScreenRotationAnimation {
                    R.integer.config_screen_rotation_color_transition);
            final SurfaceAnimationRunner runner = mService.mSurfaceAnimationRunner;
            final float[] rgbTmpFloat = new float[3];
            final int startColor = Color.rgb(mStartLuma, mStartLuma, mStartLuma);
            final int endColor = Color.rgb(mEndLuma, mEndLuma, mEndLuma);
            final int startColor = Color.rgb(0, 0, 0);
            final int endColor = Color.rgb(0, 0, 0);
            final long duration = colorTransitionMs * (long) mService.getCurrentAnimatorScale();
            final ArgbEvaluator va = ArgbEvaluator.getInstance();
            runner.startAnimation(