We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3c39a7 commit caa3812Copy full SHA for caa3812
1 file changed
app/src/main/java/org/schabi/newpipe/streams/io/StoredDirectoryHelper.java
@@ -11,7 +11,6 @@
11
import android.net.Uri;
12
import android.os.ParcelFileDescriptor;
13
import android.provider.DocumentsContract;
14
-import android.system.ErrnoException;
15
import android.system.Os;
16
import android.system.StructStatVfs;
17
import android.util.Log;
@@ -207,7 +206,9 @@ public long getFreeStorageSpace() {
207
206
208
// this is the same formula used inside the FsStat class
209
return stat.f_bavail * stat.f_frsize;
210
- } catch (final IOException | ErrnoException e) {
+ } catch (final Throwable e) {
+ // ignore any error
211
+ Log.e(TAG, "Could not get free storage space", e);
212
return Long.MAX_VALUE;
213
}
214
0 commit comments