Delete all app data when deleting account. #263

This commit is contained in:
akwizgran
2016-03-03 16:23:10 +00:00
parent 08099714ba
commit 30c3a33a0a
7 changed files with 40 additions and 34 deletions

View File

@@ -8,7 +8,9 @@ public class FileUtils {
if (f.isFile()) {
f.delete();
} else if (f.isDirectory()) {
for (File child : f.listFiles()) deleteFileOrDir(child);
File[] children = f.listFiles();
if (children != null)
for (File child : children) deleteFileOrDir(child);
f.delete();
}
}