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

Commit bede9672 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "QS: Remove listeners only if added"

parents 46f8d427 6feb3a1c
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();
    }