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>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.5</source>
|
<source>1.6</source>
|
||||||
<target>1.5</target>
|
<target>1.6</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
||||||
|
|
@ -355,6 +355,9 @@ public class DirectoryEntry extends Entry {
|
||||||
if (!hidden) {
|
if (!hidden) {
|
||||||
DirectoryEntry dir = new DirectoryEntry(this, new File(file, name));
|
DirectoryEntry dir = new DirectoryEntry(this, new File(file, name));
|
||||||
children.add(dir);
|
children.add(dir);
|
||||||
|
if (name != null && name.equals(coverFileName)) {
|
||||||
|
setThumbnail(dir.getThumbnail());
|
||||||
|
}
|
||||||
Date fileDate = dir.getEarliest();
|
Date fileDate = dir.getEarliest();
|
||||||
if (fileDate != null && fileDate.before(oldest)) {
|
if (fileDate != null && fileDate.before(oldest)) {
|
||||||
oldest = fileDate;
|
oldest = fileDate;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue