Skip to content

Commit

Permalink
UI Rebuild(100%).
Browse files Browse the repository at this point in the history
  • Loading branch information
xianglin1998 committed Mar 5, 2020
1 parent d0e7195 commit 0c131c3
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.io.FileFilter;

import cn.rrg.rdv.javabean.FileBean;
import cn.rrg.rdv.util.DumpUtils;
import cn.rrg.rdv.util.Paths;

public class DumpListActivity extends FileListActivity {
Expand Down Expand Up @@ -40,8 +41,8 @@ private boolean isDumpFileName(String name) {
return false;
}

private boolean isHardnestedDir(String name) {
return Paths.HARDNESTED_PATH.equalsIgnoreCase(name);
private boolean isHardnestedDir(File name) {
return name.isDirectory() && Paths.HARDNESTED_PATH.equalsIgnoreCase(name.getName());
}

@Override
Expand All @@ -52,14 +53,20 @@ public boolean accept(File pathname) {
// 1. The name is match!
// 2. not a hardnested res dir.
String name = pathname.getName();
return isDumpFileName(name) && !isHardnestedDir(name);
if (isHardnestedDir(pathname)) {
return false;
}
if (pathname.isDirectory()) {
return true;
}
return isDumpFileName(name) && DumpUtils.isDump(pathname);
}
};
}

@Override
protected String onInitPath() {
return Paths.DUMP_DIRECTORY;
return Paths.TOOLS_DIRECTORY;
}

@Override
Expand Down

0 comments on commit 0c131c3

Please sign in to comment.