mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 07:09:56 +01:00
Suppress deprecation warning.
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user