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

Commit a62e4705 authored by Romain Guy's avatar Romain Guy
Browse files

Fixes #2175599. Prevents an NPE when AttachInfo is null.

This bug was introduced by a change made to query the window's opacity.

Approved by mcleron.

Change-Id: I95319bde72b0faade095bbbbb317e84b9be8efa8
parent bd324c9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6189,7 +6189,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility

            final int drawingCacheBackgroundColor = mDrawingCacheBackgroundColor;
            final boolean opaque = drawingCacheBackgroundColor != 0 || isOpaque();
            final boolean translucentWindow = attachInfo.mTranslucentWindow;
            final boolean translucentWindow = attachInfo != null && attachInfo.mTranslucentWindow;

            if (width <= 0 || height <= 0 ||
                     // Projected bitmap size in bytes