Merge "Change the NetworkInfo for disconnected types." into lmp-dev

This commit is contained in:
Robert Greenwalt
2014-08-21 21:02:18 +00:00
committed by Android (Google) Code Review

View File

@@ -4761,7 +4761,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
result.setType(networkType);
return result;
} else {
return new NetworkInfo(networkType, 0, "Unknown", "");
NetworkInfo result = new NetworkInfo(networkType);
result.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, null, null);
return result;
}
}