Refactoring

This commit is contained in:
M66B
2022-04-30 22:35:22 +02:00
parent 350e91d953
commit 531eddf84b
3 changed files with 4 additions and 4 deletions

View File

@@ -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);