summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/util/StorageUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/danoeh/antennapod/util/StorageUtils.java')
-rw-r--r--src/de/danoeh/antennapod/util/StorageUtils.java4
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;