Merge "Add app compat config from ICU4J"
This commit is contained in:
@@ -554,6 +554,7 @@ java_library {
|
||||
"framework-platform-compat-config",
|
||||
// TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
|
||||
"gps_debug.conf",
|
||||
"icu4j-platform-compat-config",
|
||||
"libcore-platform-compat-config",
|
||||
"protolog.conf.json.gz",
|
||||
"services-platform-compat-config",
|
||||
|
||||
@@ -18,6 +18,7 @@ package android.timezone;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
|
||||
import com.android.i18n.timezone.TimeZoneDataFiles;
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -75,8 +76,7 @@ public final class TzDataSetVersion {
|
||||
@NonNull
|
||||
public static TzDataSetVersion read() throws IOException, TzDataSetException {
|
||||
try {
|
||||
return new TzDataSetVersion(
|
||||
com.android.i18n.timezone.TzDataSetVersion.readTimeZoneModuleVersion());
|
||||
return new TzDataSetVersion(TimeZoneDataFiles.readTimeZoneModuleVersion());
|
||||
} catch (com.android.i18n.timezone.TzDataSetVersion.TzDataSetException e) {
|
||||
throw new TzDataSetException(e.getMessage(), e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user