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

Commit 0f07b2c8 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Jean-Baptiste Queru
Browse files

Lazily allocate the mBounds Rect in Drawable.

parent 17d53ff9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ public abstract class Drawable {
    private int[] mStateSet = StateSet.WILD_CARD;
    private int mLevel = 0;
    private int mChangingConfigurations = 0;
    private Rect mBounds = ZERO_BOUNDS_RECT;
    private Rect mBounds = ZERO_BOUNDS_RECT;  // lazily becomes a new Rect()
    /*package*/ Callback mCallback = null;
    private boolean mVisible = true;