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

Commit cc2b9169 authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Do not print misleading debug messages in some scenarios. am: bfd1d6ed

am: d330f0cc

Change-Id: Ia264715fe843b1b272da6ca909edc3be6fd57b28
parents 93556e80 d330f0cc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -175,7 +175,11 @@ public class NetworkIdentity implements Comparable<NetworkIdentity> {

        if (isNetworkTypeMobile(type)) {
            if (state.subscriberId == null) {
                Slog.w(TAG, "Active mobile network without subscriber!");
                if (state.networkInfo.getState() != NetworkInfo.State.DISCONNECTED &&
                        state.networkInfo.getState() != NetworkInfo.State.UNKNOWN) {
                    Slog.w(TAG, "Active mobile network without subscriber! ni = "
                            + state.networkInfo);
                }
            }

            subscriberId = state.subscriberId;