Adding SuppressWarning for External Storage from DefaultDiskStorage
@@ -103,11 +103,14 @@ public class DefaultDiskStorage implements DiskStorage {
mClock = SystemClock.get();
}
+ @SuppressWarnings("ExternalStorageUse")
private static boolean isExternal(File directory, CacheErrorLogger cacheErrorLogger) {
boolean state = false;
String appCacheDirPath = null;
try {
+ // Whitelisted use of external storage Android changes in Target SDK 29 and above as it
+ // only used for getting the canonical path
File extStoragePath = Environment.getExternalStorageDirectory();
if (extStoragePath != null) {
String cacheDirPath = extStoragePath.toString();
