diff options
| author | 2016-02-17 15:46:57 +0000 | |
|---|---|---|
| committer | 2016-02-17 15:46:58 +0000 | |
| commit | 0a6495dc600b20b79f890a86134e15c23d28054d (patch) | |
| tree | 1dca058ae35ece609d8041dd08874dbe20f644fb | |
| parent | 8556328bdfc203c9f4bc84506d34d735ede7ab89 (diff) | |
| parent | 8c7e47f95d5bdd06b4040528d8ac53818ce60745 (diff) | |
Merge "Protect against monkey crash" into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java b/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java index edcccaca2a14..81e15818aa1c 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java +++ b/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java @@ -90,16 +90,20 @@ public class QSCustomizer extends LinearLayout implements AnimatorListener, OnCl } public void show(int x, int y) { - isShown = true; - mPhoneStatusBar.getStatusBarWindow().addView(this); - setTileSpecs(); - mClipper.animateCircularClip(x, y, true, this); - new TileQueryHelper(mContext, mHost).setListener(mTileAdapter); + 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) { - isShown = false; - mClipper.animateCircularClip(x, y, false, this); + if (isShown) { + isShown = false; + mClipper.animateCircularClip(x, y, false, this); + } } public boolean isCustomizing() { |