|
@@ -46,7 +46,11 @@ public class FileChooserDialog extends DialogFragment implements MaterialDialog.
|
|
|
}
|
|
|
|
|
|
String[] getContentsArray() {
|
|
|
- if (parentContents == null) return new String[]{};
|
|
|
+ if (parentContents == null) {
|
|
|
+ if (canGoUp)
|
|
|
+ return new String[]{"..."};
|
|
|
+ return new String[]{};
|
|
|
+ }
|
|
|
String[] results = new String[parentContents.length + (canGoUp ? 1 : 0)];
|
|
|
if (canGoUp) results[0] = "...";
|
|
|
for (int i = 0; i < parentContents.length; i++)
|