From 63f6c15bb231e7fa749789d90cb457c08ac4e747 Mon Sep 17 00:00:00 2001 From: Harshad Vedartham Date: Thu, 12 Dec 2024 15:11:40 +0530 Subject: [PATCH] Reverted name --- .../markor/frontend/filebrowser/MarkorFileBrowserFactory.java | 4 ++-- .../opoc/frontend/filebrowser/GsFileBrowserListAdapter.java | 4 ++-- .../opoc/frontend/filebrowser/GsFileBrowserOptions.java | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/net/gsantner/markor/frontend/filebrowser/MarkorFileBrowserFactory.java b/app/src/main/java/net/gsantner/markor/frontend/filebrowser/MarkorFileBrowserFactory.java index 54b16e77b..4011dc319 100644 --- a/app/src/main/java/net/gsantner/markor/frontend/filebrowser/MarkorFileBrowserFactory.java +++ b/app/src/main/java/net/gsantner/markor/frontend/filebrowser/MarkorFileBrowserFactory.java @@ -81,8 +81,8 @@ public static GsFileBrowserOptions.Options prepareFsViewerOpts( opts.favouriteFiles = appSettings.getFavouriteFiles(); opts.recentFiles = appSettings.getRecentFiles(); opts.popularFiles = appSettings.getPopularFiles(); - opts.virtualMaps.clear(); - opts.virtualMaps.put(new File(cu.rstr(context, R.string.notebook)), appSettings.getNotebookDirectory()); + opts.storageMaps.clear(); + opts.storageMaps.put(new File(cu.rstr(context, R.string.notebook)), appSettings.getNotebookDirectory()); }; opts.refresh.callback(); diff --git a/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java b/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java index ef9b92034..a466b88f2 100644 --- a/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java +++ b/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java @@ -150,8 +150,8 @@ public void updateVirtualFolders() { _virtualMapping.put(VIRTUAL_STORAGE_EMULATED, VIRTUAL_STORAGE_EMULATED); - if (_dopt.virtualMaps != null) { - _virtualMapping.putAll(_dopt.virtualMaps); + if (_dopt.storageMaps != null) { + _virtualMapping.putAll(_dopt.storageMaps); } final File appDataFolder = _context.getFilesDir(); diff --git a/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserOptions.java b/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserOptions.java index 2f8d73736..de2f2829e 100644 --- a/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserOptions.java +++ b/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserOptions.java @@ -22,7 +22,6 @@ import java.io.File; import java.io.Serializable; import java.util.Collection; -import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; @@ -125,7 +124,7 @@ public static class Options { @ColorRes public int folderColor = 0; - public final Map virtualMaps = new LinkedHashMap<>(); + public final Map storageMaps = new LinkedHashMap<>(); public Collection favouriteFiles, recentFiles, popularFiles = null; public GsCallback.a1 setTitle = null, setSubtitle = null;