From 8b341d236316e914156c95df77c50ba1c08c1a68 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 5 Sep 2018 12:22:27 -0700 Subject: [PATCH] Remove the old location of the ICU data asset (flutter/engine#6170) The tools are now placing icudtl.dat in the flutter_shared directory. It is no longer necessary to check for this asset at its previous path. --- .../platform/android/io/flutter/view/FlutterMain.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java index 2ac9347f18..49d3b01707 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterMain.java @@ -262,15 +262,7 @@ public class FlutterMain { sResourceExtractor = new ResourceExtractor(context); - // Search for the icudtl.dat file at the old and new locations. - // TODO(jsimmons): remove the old location when all tools have been updated. - Set sharedAssets = listAssets(applicationContext, SHARED_ASSET_DIR); - String icuAssetPath; - if (sharedAssets.contains(SHARED_ASSET_ICU_DATA)) { - icuAssetPath = SHARED_ASSET_DIR + File.separator + SHARED_ASSET_ICU_DATA; - } else { - icuAssetPath = SHARED_ASSET_ICU_DATA; - } + String icuAssetPath = SHARED_ASSET_DIR + File.separator + SHARED_ASSET_ICU_DATA; sResourceExtractor.addResource(icuAssetPath); sIcuDataPath = PathUtils.getDataDirectory(applicationContext) + File.separator + icuAssetPath;