mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
Another workaround for another crash on Android launcher
This commit is contained in:
parent
06b0ebf08c
commit
a81f18765c
@ -81,7 +81,7 @@ public class FileUtil
|
||||
{
|
||||
if (file == null)
|
||||
{
|
||||
Log.e("Broken path given to fileutil");
|
||||
Log.e("Broken path given to fileutil::ensureWriteable");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -99,6 +99,12 @@ public class FileUtil
|
||||
|
||||
public static boolean clearDirectory(final File dir)
|
||||
{
|
||||
if (dir == null)
|
||||
{
|
||||
Log.e("Broken path given to fileutil::clearDirectory");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (final File f : dir.listFiles())
|
||||
{
|
||||
if (f.isDirectory() && !clearDirectory(f))
|
||||
|
Loading…
Reference in New Issue
Block a user