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

Commit be23ef36 authored by Gabriele M's avatar Gabriele M Committed by android-build-merger
Browse files

Merge "QS: Remove listeners only if added" am: bede9672

am: a8e8f1c9

Change-Id: Id8211c9683230ee5cbf1bc7497f5e7d879116d56
parents e4687471 a8e8f1c9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -312,7 +312,9 @@ public abstract class QSTile<TState extends State> {
    protected abstract void setListening(boolean listening);

    protected void handleDestroy() {
        if (mListeners.size() != 0) {
            setListening(false);
        }
        mCallbacks.clear();
    }