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

Commit f8c6396b authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Protect against monkey crash" into nyc-dev am: 0a6495dc

am: ae535993

* commit 'ae535993':
  Protect against monkey crash
parents ec129932 ae535993
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;