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;