Skip to content
Snippets Groups Projects
Commit 4a19f821 authored by akwizgran's avatar akwizgran
Browse files

Suppress deprecation warning.

parent 26eebee8
No related branches found
No related tags found
Loading
...@@ -9,6 +9,7 @@ import android.os.StatFs; ...@@ -9,6 +9,7 @@ import android.os.StatFs;
class AndroidFileUtils implements FileUtils { class AndroidFileUtils implements FileUtils {
@SuppressWarnings("deprecation")
public long getFreeSpace(File f) throws IOException { public long getFreeSpace(File f) throws IOException {
if(Build.VERSION.SDK_INT >= 9) return f.getUsableSpace(); if(Build.VERSION.SDK_INT >= 9) return f.getUsableSpace();
StatFs s = new StatFs(f.getAbsolutePath()); StatFs s = new StatFs(f.getAbsolutePath());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment