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

Commit 5d2eeb11 authored by John Spurlock's avatar John Spurlock
Browse files

Defend against malformed broadcast in NotificationManager.

Bug:12583158
Change-Id: I4b10e19b9a23ff8e950006b3b3496bd6800346ea
parent c46809e9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1045,8 +1045,8 @@ public class NotificationManagerService extends SystemService {
            } else if (action.equals(Intent.ACTION_SCREEN_OFF)) {
                mScreenOn = false;
            } else if (action.equals(TelephonyManager.ACTION_PHONE_STATE_CHANGED)) {
                mInCall = (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(
                        TelephonyManager.EXTRA_STATE_OFFHOOK));
                mInCall = TelephonyManager.EXTRA_STATE_OFFHOOK
                        .equals(intent.getStringExtra(TelephonyManager.EXTRA_STATE));
                updateNotificationPulse();
            } else if (action.equals(Intent.ACTION_USER_STOPPED)) {
                int userHandle = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1);