Merge "QS: Remove listeners only if added"

This commit is contained in:
Treehugger Robot
2017-06-06 18:36:25 +00:00
committed by Gerrit Code Review

View File

@@ -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();
}