mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Refactoring
This commit is contained in:
@@ -2019,7 +2019,8 @@ public class Helper {
|
||||
return stats.getTotalBytes();
|
||||
}
|
||||
|
||||
static long getCacheSize(Context context) {
|
||||
static long getCacheQuota(Context context) {
|
||||
// https://developer.android.com/reference/android/content/Context#getCacheDir()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
|
||||
try {
|
||||
StorageManager sm = Helper.getSystemService(context, StorageManager.class);
|
||||
|
||||
Reference in New Issue
Block a user