Allow default navigation to default to user folder

This commit is contained in:
TwistedUmbrella 2014-11-17 09:05:53 -05:00
parent 159d554c7d
commit 4b58c695fc
1 changed files with 7 additions and 3 deletions

View File

@ -267,12 +267,12 @@ public class FileBrowser extends Fragment {
}
list.invalidate();
} else {
browseStorage();
browseStorage(array == R.array.images);
}
}
}
private void browseStorage() {
private void browseStorage(boolean images) {
HashSet<String> extStorage = FileBrowser.getExternalMounts();
if (extStorage != null && !extStorage.isEmpty()) {
for (Iterator<String> sd = extStorage.iterator(); sd.hasNext();) {
@ -285,7 +285,11 @@ public class FileBrowser extends Fragment {
}
}
}
navigate(sdcard);
if (images) {
navigate(new File(home_directory));
} else {
navigate(new File(game_directory));
}
}
private static final class DirSort implements Comparator<File> {