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

Commit dd010bff authored by Paul Hu's avatar Paul Hu Committed by Gerrit Code Review
Browse files

Merge "Replace PendingIntent#getIntent"

parents 54a3e529 745901f2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3614,11 +3614,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
    // pendingIntent => NetworkRequestInfo map.
    // This method assumes that every non-null PendingIntent maps to exactly 1 NetworkRequestInfo.
    private NetworkRequestInfo findExistingNetworkRequestInfo(PendingIntent pendingIntent) {
        Intent intent = pendingIntent.getIntent();
        for (Map.Entry<NetworkRequest, NetworkRequestInfo> entry : mNetworkRequests.entrySet()) {
            PendingIntent existingPendingIntent = entry.getValue().mPendingIntent;
            if (existingPendingIntent != null &&
                    existingPendingIntent.getIntent().filterEquals(intent)) {
                    existingPendingIntent.intentFilterEquals(pendingIntent)) {
                return entry.getValue();
            }
        }