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

Commit 0a6495dc authored by Jason Monk's avatar Jason Monk Committed by Android (Google) Code Review
Browse files

Merge "Protect against monkey crash" into nyc-dev

parents 8556328b 8c7e47f9
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -90,17 +90,21 @@ public class QSCustomizer extends LinearLayout implements AnimatorListener, OnCl
    }

    public void show(int x, int y) {
        if (!isShown) {
            isShown = true;
            mPhoneStatusBar.getStatusBarWindow().addView(this);
            setTileSpecs();
            mClipper.animateCircularClip(x, y, true, this);
            new TileQueryHelper(mContext, mHost).setListener(mTileAdapter);
        }
    }

    public void hide(int x, int y) {
        if (isShown) {
            isShown = false;
            mClipper.animateCircularClip(x, y, false, this);
        }
    }

    public boolean isCustomizing() {
        return isShown;