mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
Only allow one layer of sub-directories in the cache for now
PiperOrigin-RevId: 230209898
This commit is contained in:
parent
e4eaaedad3
commit
c2f6dd6b0a
@ -405,7 +405,7 @@ public final class SimpleCache implements Cache {
|
||||
}
|
||||
for (File file : files) {
|
||||
String fileName = file.getName();
|
||||
if (fileName.indexOf('.') == -1) {
|
||||
if (isRootDirectory && fileName.indexOf('.') == -1) {
|
||||
loadDirectory(file, /* isRootDirectory= */ false);
|
||||
} else {
|
||||
if (isRootDirectory && CachedContentIndex.FILE_NAME.equals(fileName)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user