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