summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/QSTile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java
index f743a4bf1a82..dbe2b2ec8b79 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSTile.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSTile.java
@@ -312,7 +312,9 @@ public abstract class QSTile<TState extends State> {
protected abstract void setListening(boolean listening);
protected void handleDestroy() {
- setListening(false);
+ if (mListeners.size() != 0) {
+ setListening(false);
+ }
mCallbacks.clear();
}