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

Commit 1e96bdf3 authored by John Reck's avatar John Reck
Browse files

Don't buildLayer if size == 0

 Bug: 15598692

Change-Id: Ia4e9e68c712b318b8d66e8cdfb2aceda4e892289
parent 17c9d69d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13529,6 +13529,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            throw new IllegalStateException("This view must be attached to a window first");
        }
        if (getWidth() == 0 || getHeight() == 0) {
            return;
        }
        switch (mLayerType) {
            case LAYER_TYPE_HARDWARE:
                // The only part of a hardware layer we can build in response to