Avoid NPE in notification inline controls.
Specifically, notifications that come from essential parts of the system that cannot be blocked or silenced. Fixes: 32384422 Test: manual: longpress Clock notification, press DONE Change-Id: Ic43cf90d4d7940b1cbfcedb6934567b799efd12b
This commit is contained in:
@@ -242,9 +242,9 @@ public class NotificationGuts extends LinearLayout implements TunerService.Tunab
|
|||||||
return Ranking.IMPORTANCE_UNSPECIFIED;
|
return Ranking.IMPORTANCE_UNSPECIFIED;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (mBlock.isChecked()) {
|
if (mBlock != null && mBlock.isChecked()) {
|
||||||
return Ranking.IMPORTANCE_NONE;
|
return Ranking.IMPORTANCE_NONE;
|
||||||
} else if (mSilent.isChecked()) {
|
} else if (mSilent != null && mSilent.isChecked()) {
|
||||||
return Ranking.IMPORTANCE_LOW;
|
return Ranking.IMPORTANCE_LOW;
|
||||||
} else {
|
} else {
|
||||||
return Ranking.IMPORTANCE_UNSPECIFIED;
|
return Ranking.IMPORTANCE_UNSPECIFIED;
|
||||||
|
|||||||
Reference in New Issue
Block a user