mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
show directories in file choosers
This commit is contained in:
+3
@@ -19,6 +19,9 @@ enum FileFilterEnum {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(File f) {
|
public boolean accept(File f) {
|
||||||
|
if (f.isDirectory()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
String fileExt = f.getName();
|
String fileExt = f.getName();
|
||||||
fileExt = fileExt.substring(fileExt.lastIndexOf('.') + 1).toLowerCase();
|
fileExt = fileExt.substring(fileExt.lastIndexOf('.') + 1).toLowerCase();
|
||||||
for (String ext : extensions) {
|
for (String ext : extensions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user