Add analytics

This commit is contained in:
seven332 committed 2016-03-07 13:28:37 +08:00
1 parent ac5f839a75
commit 5b6b6f63b2
24 files changed
+816 -90

No files matched your search

@@ -64,6 +64,16 @@ public class AppConfig {
return null;
}
@Nullable
public static File getFileInAppDir(String filename) {
File appFolder = getExternalAppDir();
if (appFolder != null) {
File file = new File(appFolder, filename);
return FileUtils.ensureFile(file) ? file : null;
}
return null;
}
@Nullable
public static File getDefaultDownloadDir() {
return getDirInAppDir(DOWNLOAD);