()
| 54 | } |
| 55 | |
| 56 | @Override |
| 57 | public void goUp() { |
| 58 | if (currentDir == null) |
| 59 | return; |
| 60 | File parent = currentDir.getParentFile(); |
| 61 | if (parent == null) { |
| 62 | currentDir = null; |
| 63 | files.clear(); |
| 64 | File[] a = File.listRoots(); |
| 65 | if (a == null) |
| 66 | return; |
| 67 | for (File file : a) { |
| 68 | if (!fsv.isDrive(file) || fsv.getSystemDisplayName(file).isEmpty()) |
| 69 | continue; |
| 70 | files.add(file); |
| 71 | } |
| 72 | selectedFile = files.isEmpty() ? -1 : 0; |
| 73 | return; |
| 74 | } |
| 75 | updateDir(parent); |
| 76 | } |
| 77 | |
| 78 | @Override |
| 79 | public void updateDir(File dir) { |