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

Unverified Commit 4babf176 authored by Steve Kondik's avatar Steve Kondik Committed by Michael Bestas
Browse files

systemui: Fix NPE when changing importance

 * Seems to happen from the lockscreen. Add a nullcheck.

Change-Id: I070e0856a80bfa834a7629dd81e57669aaedf2d4
parent 671f17ed
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -245,9 +245,9 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
                return Ranking.IMPORTANCE_UNSPECIFIED;
            }
        } else {
            if (mBlock.isChecked()) {
            if (mBlock != null && mBlock.isChecked()) {
                return Ranking.IMPORTANCE_NONE;
            } else if (mSilent.isChecked()) {
            } else if (mSilent != null && mSilent.isChecked()) {
                return Ranking.IMPORTANCE_LOW;
            } else {
                return Ranking.IMPORTANCE_UNSPECIFIED;