Skip to content

Commit

Permalink
Handle virtual folders better
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 committed Jun 19, 2024
1 parent 9c6ed68 commit b4857cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import net.gsantner.markor.util.MarkorContextUtils;
import net.gsantner.opoc.format.GsTextUtils;
import net.gsantner.opoc.frontend.base.GsFragmentBase;
import net.gsantner.opoc.frontend.filebrowser.GsFileBrowserListAdapter;
import net.gsantner.opoc.util.GsContextUtils;
import net.gsantner.opoc.util.GsFileUtils;
import net.gsantner.opoc.wrapper.GsCallback;
Expand All @@ -57,7 +58,7 @@ public static void launch(final Activity activity, final File path, final Boolea
intent.putExtra(Document.EXTRA_FILE, path);
}

if (path != null && path.isDirectory()) {
if (path != null && (path.isDirectory() || GsFileBrowserListAdapter.isVirtualFolder(path))) {
intent.setClass(activity, MainActivity.class);
}

Expand Down

0 comments on commit b4857cd

Please sign in to comment.