Suppress deprecation warning.

This commit is contained in:
akwizgran
2013-11-22 12:52:11 +00:00
parent 26eebee8d9
commit 4a19f821bb

View File

@@ -9,6 +9,7 @@ import android.os.StatFs;
class AndroidFileUtils implements FileUtils {
@SuppressWarnings("deprecation")
public long getFreeSpace(File f) throws IOException {
if(Build.VERSION.SDK_INT >= 9) return f.getUsableSpace();
StatFs s = new StatFs(f.getAbsolutePath());