KMZ importing: look for images anywhere in KMZ file and only images referenced remain in external storage.

This commit is contained in:
Román
2020-04-21 11:03:02 +02:00
parent 54b9c4370b
commit 653eb8320a
4 changed files with 104 additions and 10 deletions
@@ -95,11 +95,15 @@ public class FileUtils {
/**
* Gets the extension from a file name.
* Returns null if there is no extension.
* Returns null if there is no extension or fileName is null.
*
* @param fileName the file name
*/
public static String getExtension(String fileName) {
if (fileName == null) {
return null;
}
int index = fileName.lastIndexOf('.');
if (index == -1) {
return null;