mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Added total storage space
This commit is contained in:
@@ -614,6 +614,11 @@ public class Helper {
|
||||
return stats.getAvailableBlocksLong() * stats.getBlockSizeLong();
|
||||
}
|
||||
|
||||
static long getTotalStorageSpace() {
|
||||
StatFs stats = new StatFs(Environment.getDataDirectory().getAbsolutePath());
|
||||
return stats.getTotalBytes();
|
||||
}
|
||||
|
||||
static void openAdvanced(Intent intent) {
|
||||
// https://issuetracker.google.com/issues/72053350
|
||||
intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
|
||||
|
||||
Reference in New Issue
Block a user