File tree Expand file tree Collapse file tree
AndroidFilePickerLightLibrary/src/main/java/com/maxieds/androidfilepickerlightlibrary Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,10 +263,10 @@ public static DirectoryResultContext probeAtCursoryFolderQuery(String nextSubfol
263263 fpInst .setCustomFileFilter (DisplayFragments .getInstance ().localFilesListFilter );
264264 fpInst .setCustomFolderSort (DisplayFragments .getInstance ().localFilesListSortFunc );
265265 }
266- if (!fpInst .enterNextSubfolder (nextSubfolderPath )) {
266+ // Choose to degrade nicely if possible (no throwing fatal errors if can recover):
267+ if (!fpInst .enterNextSubfolder (nextSubfolderPath ) && fpInst .getCWD ().equals ("" )) { // did not load anywhere:
267268 return null ;
268269 }
269- Log .i (LOGTAG , "ENTERING subfolder \" " + nextSubfolderPath + "\" ..." );
270270 return probeAtCursoryFolderQueryGetNext ();
271271 }
272272
You can’t perform that action at this time.
0 commit comments