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

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

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

..observed after adding Google account from Gtalk

Change-Id: Ide0646e01ded6f661e4e8de990a21e4d4330b416
parent f76aca98
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);