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

Commit 8c7e47f9 authored by Jason Monk's avatar Jason Monk
Browse files

Protect against monkey crash

Bug: 27164002
Change-Id: Ic1b68a55a136106010b6df07766a96533683eece
parent a5d7dd9c
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;