From f7595e491342e8b4a33fa7607f207010241c9dbb Mon Sep 17 00:00:00 2001 From: Peter Kanev Date: Wed, 7 Jun 2017 11:02:39 +0300 Subject: [PATCH] remove faulty message when removing previously installed assets from the app directory --- runtime/src/main/java/com/tns/AssetExtractor.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/runtime/src/main/java/com/tns/AssetExtractor.java b/runtime/src/main/java/com/tns/AssetExtractor.java index de2439628..9ebf966aa 100644 --- a/runtime/src/main/java/com/tns/AssetExtractor.java +++ b/runtime/src/main/java/com/tns/AssetExtractor.java @@ -26,7 +26,8 @@ public void extractAssets(Context context, String inputPath, String outputPath, try { delete(new File(outputPath + inputPath)); } catch (IOException e) { - Log.d(LogTag, "Problem occurred while deleting assets from previous app version: " + outputPath + inputPath); + String logTag = "AssetExtraction"; + Log.d(logTag, "Problem occurred while deleting assets from previous app version: " + outputPath + inputPath); } } @@ -50,7 +51,6 @@ public void extractAssets(Context context, String inputPath, String outputPath, private static void delete(File file) throws IOException { File[] files = file.listFiles(); if (files == null) { - Log.d(LogTag, "Can't remove previously installed assets in " + file.getAbsolutePath()); return; } @@ -68,6 +68,4 @@ private static void delete(File file) throws IOException { throw new IOException(); } } - - private static String LogTag = "JS: AssetExtraction"; -} \ No newline at end of file +}