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

Suppress lint warning: NewApi.

parent ff059ef7
No related branches found
No related tags found
No related merge requests found
......@@ -2,14 +2,14 @@ package org.briarproject.system;
import java.io.File;
import java.io.IOException;
import org.briarproject.api.system.FileUtils;
import android.annotation.SuppressLint;
import android.os.Build;
import android.os.StatFs;
class AndroidFileUtils implements FileUtils {
@SuppressLint("NewApi")
@SuppressWarnings("deprecation")
public long getTotalSpace(File f) throws IOException {
if(Build.VERSION.SDK_INT >= 9) return f.getTotalSpace();
......@@ -18,6 +18,7 @@ class AndroidFileUtils implements FileUtils {
return (long) s.getBlockCount() * s.getBlockSize();
}
@SuppressLint("NewApi")
@SuppressWarnings("deprecation")
public long getFreeSpace(File f) throws IOException {
if(Build.VERSION.SDK_INT >= 9) return f.getUsableSpace();
......
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