Merge "Do not print misleading debug messages in some scenarios." into nyc-mr1-dev

This commit is contained in:
Jack Yu
2016-08-24 20:24:41 +00:00
committed by Android (Google) Code Review

View File

@@ -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;