diff --git a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemCache.java b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemCache.java index 1c3172daf..0d16b5ef6 100644 --- a/app/src/main/java/io/xpipe/app/browser/OpenFileSystemCache.java +++ b/app/src/main/java/io/xpipe/app/browser/OpenFileSystemCache.java @@ -13,12 +13,22 @@ public class OpenFileSystemCache { private final OpenFileSystemModel model; private final Map installedApplications = new HashMap<>(); + private final Map multiPurposeCache = new HashMap<>(); private String username; public OpenFileSystemCache(OpenFileSystemModel model) { this.model = model; } + @SuppressWarnings("unchecked") + public T get(String key) { + return (T) multiPurposeCache.get(key); + } + + public void set(String key, Object value) { + multiPurposeCache.put(key, value); + } + public void init() throws Exception { ShellControl sc = model.getFileSystem().getShell().get(); ShellDialect d = sc.getShellDialect();