#1735 Adds support for county ID with sentinel value of 99999 to indicate county unknown for sites of a system.

This commit is contained in:
sheirerd
2023-11-15 04:51:07 -05:00
parent b1b5ae5fd2
commit 5858a85a50

View File

@@ -294,7 +294,11 @@ public class SystemEditor extends VBox
{
CountyInfo countyInfo = null;
if(site.getCountyId() > 0)
int countyId = site.getCountyId();
//Temporary sites that have been added to a system where the county/location is unknown, can
//have a county ID of 99,999 as observed from API (undocumented).
if(countyId > 0 && countyId != 99999)
{
countyInfo = mRadioReference.getService().getCountyInfo(site.getCountyId());
}