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

Commit ca46b871 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #8540550: Screenshots should never have transparency

Make sure the thumbnail bitmap is initialized with a black
background.

Change-Id: I87c00d309b7d30b6085a751aa4ae22cf146c74f5
parent 18455c30
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -5490,6 +5490,7 @@ public class WindowManagerService extends IWindowManager.Stub
        ScreenRotationAnimation.createRotationMatrix(rot, dw, dh, matrix);
        ScreenRotationAnimation.createRotationMatrix(rot, dw, dh, matrix);
        matrix.postTranslate(-FloatMath.ceil(frame.left*scale), -FloatMath.ceil(frame.top*scale));
        matrix.postTranslate(-FloatMath.ceil(frame.left*scale), -FloatMath.ceil(frame.top*scale));
        Canvas canvas = new Canvas(bm);
        Canvas canvas = new Canvas(bm);
        canvas.drawColor(0xFF000000);
        canvas.drawBitmap(rawss, matrix, null);
        canvas.drawBitmap(rawss, matrix, null);
        canvas.setBitmap(null);
        canvas.setBitmap(null);