Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ed0fcd1 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Simplify APIs exposed for time zone lookups"

am: 2df8c250

Change-Id: Ic49a778208364941654658bb51a8517ece82349b
parents 71db1cdc 2df8c250
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ import android.util.Slog;
import com.android.internal.app.LocaleStore;
import com.android.internal.app.LocaleStore.LocaleInfo;

import libcore.timezone.CountryTimeZones;
import libcore.timezone.TimeZoneFinder;

import java.util.ArrayList;
@@ -96,7 +97,9 @@ public final class MccTable {
            return null;
        }
        final String lowerCaseCountryCode = entry.mIso;
        return TimeZoneFinder.getInstance().lookupDefaultTimeZoneIdByCountry(lowerCaseCountryCode);
        CountryTimeZones countryTimeZones =
                TimeZoneFinder.getInstance().lookupCountryTimeZones(lowerCaseCountryCode);
        return countryTimeZones == null ? null : countryTimeZones.getDefaultTimeZoneId();
    }

    /**