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

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

Merge "QS: Remove listeners only if added"

am: bede9672

Change-Id: I53250273e39889b6b772dc12bbdbbc0c9606fd47
parents de30ee2d bede9672
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();
    }