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

Commit 5efb7a27 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Don't buildLayer if size == 0"

parents 92537739 1e96bdf3
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