Skip to content

Commit

Permalink
Merge "Tidy up libcore.timezone APIs" am: 45834d9 am: 35ffa52 am: 798…
Browse files Browse the repository at this point in the history
…407a

Change-Id: I486df8f44bcd67baf933853145f7617cf6b0e891
  • Loading branch information
android-build-merge-worker-robot committed Jan 31, 2020
2 parents 04232f6 + 798407a commit de86f9c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ public FilteredCountryTimeZones(CountryTimeZones countryTimeZones) {
mCountryTimeZones = countryTimeZones;
List<String> timeZoneIds = countryTimeZones.getTimeZoneMappings().stream()
.filter(timeZoneMapping ->
timeZoneMapping.showInPicker && (timeZoneMapping.notUsedAfter == null
|| timeZoneMapping.notUsedAfter >= MIN_USE_DATE_OF_TIMEZONE))
.map(timeZoneMapping -> timeZoneMapping.timeZoneId)
timeZoneMapping.isShownInPicker()
&& (timeZoneMapping.getNotUsedAfter() == null
|| timeZoneMapping.getNotUsedAfter() >= MIN_USE_DATE_OF_TIMEZONE))
.map(timeZoneMapping -> timeZoneMapping.getTimeZoneId())
.collect(Collectors.toList());
mTimeZoneIds = Collections.unmodifiableList(timeZoneIds);
}
Expand Down

0 comments on commit de86f9c

Please sign in to comment.