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

Commit 64b591de authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix issue #3291975: Google services frame work crash..."

parents 060f2175 cb8f0e09
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -4958,7 +4958,7 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            Binder.restoreCallingIdentity(ident);

            if (frame.isEmpty()) {
            if (frame.isEmpty() || maxLayer == 0) {
                return null;
            }

@@ -4990,6 +4990,10 @@ public class WindowManagerService extends IWindowManager.Stub
            rawss = Surface.screenshot(dw, dh, 0, maxLayer);
        }

        if (rawss == null) {
            return null;
        }
        
        Bitmap bm = Bitmap.createBitmap(sw, sh, rawss.getConfig());
        Matrix matrix = new Matrix();
        ScreenRotationAnimation.createRotationMatrix(rot, dw, dh, matrix);