fix bug so thumbnail can be specified as subdir name
This commit is contained in:
parent
bd94999bdc
commit
d6bc15d939
2 changed files with 5 additions and 2 deletions
4
pom.xml
4
pom.xml
|
|
@ -37,8 +37,8 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.5</source>
|
||||
<target>1.5</target>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
|||
|
|
@ -355,6 +355,9 @@ public class DirectoryEntry extends Entry {
|
|||
if (!hidden) {
|
||||
DirectoryEntry dir = new DirectoryEntry(this, new File(file, name));
|
||||
children.add(dir);
|
||||
if (name != null && name.equals(coverFileName)) {
|
||||
setThumbnail(dir.getThumbnail());
|
||||
}
|
||||
Date fileDate = dir.getEarliest();
|
||||
if (fileDate != null && fileDate.before(oldest)) {
|
||||
oldest = fileDate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue