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

Commit e30735c7 authored by Paul Jensen's avatar Paul Jensen Committed by Android (Google) Code Review
Browse files

Merge "Fix to allow removing sign-in notification when network removed." into lmp-dev

parents 0dedb722 5df4bec5
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -1898,6 +1898,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
                    break;
                }
                case NetworkMonitor.EVENT_PROVISIONING_NOTIFICATION: {
                    if (msg.arg1 == 0) {
                        setProvNotificationVisibleIntent(false, msg.arg2, 0, null, null);
                    } else {
                        NetworkAgentInfo nai = null;
                        synchronized (mNetworkForNetId) {
                            nai = mNetworkForNetId.get(msg.arg2);
@@ -1906,9 +1909,6 @@ public class ConnectivityService extends IConnectivityManager.Stub {
                            loge("EVENT_PROVISIONING_NOTIFICATION from unknown NetworkMonitor");
                            break;
                        }
                    if (msg.arg1 == 0) {
                        setProvNotificationVisibleIntent(false, msg.arg2, 0, null, null);
                    } else {
                        setProvNotificationVisibleIntent(true, msg.arg2, nai.networkInfo.getType(),
                                nai.networkInfo.getExtraInfo(), (PendingIntent)msg.obj);
                    }