diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-12-31 17:41:11 +0100 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-12-31 17:41:11 +0100 |
commit | 705693ea0c9c2c856132cc2a5b208594f8ace0e9 (patch) | |
tree | 599afc3f9a7e0c36ccd970bb3453161a32410357 | |
parent | 0978fbacb1fbb53faae435c3c493e5f170ce69e5 (diff) | |
download | AntennaPod-705693ea0c9c2c856132cc2a5b208594f8ace0e9.zip |
Updated getFreeSpaceAvailable() method
-rw-r--r-- | src/de/danoeh/antennapod/util/StorageUtils.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/util/StorageUtils.java b/src/de/danoeh/antennapod/util/StorageUtils.java index f32f51cef..ec398b810 100644 --- a/src/de/danoeh/antennapod/util/StorageUtils.java +++ b/src/de/danoeh/antennapod/util/StorageUtils.java @@ -49,8 +49,8 @@ public class StorageUtils { /** Get the number of free bytes that are available on the external storage. */ public static long getFreeSpaceAvailable() { - StatFs stat = new StatFs(Environment.getExternalStorageDirectory() - .getPath()); + StatFs stat = new StatFs(PodcastApp.getDataFolder( + PodcastApp.getInstance(), null).getAbsolutePath()); long availableBlocks = stat.getAvailableBlocks(); long blockSize = stat.getBlockSize(); return availableBlocks * blockSize; |