Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions runtime/src/main/java/com/tns/AssetExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -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;
}

Expand All @@ -68,6 +68,4 @@ private static void delete(File file) throws IOException {
throw new IOException();
}
}

private static String LogTag = "JS: AssetExtraction";
}
}