Merge "Tidy up libcore.timezone APIs"
This commit is contained in:
@@ -48,9 +48,10 @@ public class FilteredCountryTimeZones {
|
|||||||
mCountryTimeZones = countryTimeZones;
|
mCountryTimeZones = countryTimeZones;
|
||||||
List<String> timeZoneIds = countryTimeZones.getTimeZoneMappings().stream()
|
List<String> timeZoneIds = countryTimeZones.getTimeZoneMappings().stream()
|
||||||
.filter(timeZoneMapping ->
|
.filter(timeZoneMapping ->
|
||||||
timeZoneMapping.showInPicker && (timeZoneMapping.notUsedAfter == null
|
timeZoneMapping.isShownInPicker()
|
||||||
|| timeZoneMapping.notUsedAfter >= MIN_USE_DATE_OF_TIMEZONE))
|
&& (timeZoneMapping.getNotUsedAfter() == null
|
||||||
.map(timeZoneMapping -> timeZoneMapping.timeZoneId)
|
|| timeZoneMapping.getNotUsedAfter() >= MIN_USE_DATE_OF_TIMEZONE))
|
||||||
|
.map(timeZoneMapping -> timeZoneMapping.getTimeZoneId())
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
mTimeZoneIds = Collections.unmodifiableList(timeZoneIds);
|
mTimeZoneIds = Collections.unmodifiableList(timeZoneIds);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user