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

Commit 1f0667aa authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

qs: fix NPE in visualizer tile



On handleDestroy(), mMediaMonitor is null. Do not try to link the visualizer in that case

Change-Id: I71da90098f2fa8a3187b5453338d523d1d514120
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 51d76f93
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -220,7 +220,8 @@ public class VisualizerTile extends QSTile<QSTile.State> implements KeyguardMoni
            }
        } else {
            // no keyguard, relink if there's something playing
            if (mMediaMonitor.isAnythingPlaying()
            if (mMediaMonitor != null
                    && mMediaMonitor.isAnythingPlaying()
                    && !mLinked
                    && mListening
                    && !mPowerSaveModeEnabled) {