TagSpaces is an offline, open source, document manager with tagging support
fixing issue with opening files from search results on android #438
uggrock90752431de30
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.jsindex 042a80bce..232c824a0 100644--- a/data/cordova/cordova.api.js+++ b/data/cordova/cordova.api.js@@ -323,7 +323,11 @@ define(function(require, exports, module) {function sendFile(filePath) {console.log("Sending file: " + filePath);- window.plugins.fileOpener.send(filePath);+ if (filePath.indexOf("file://") === 0 ) {+ window.plugins.fileOpener.send(filePath);+ } else {+ window.plugins.fileOpener.send("file://" + filePath);+ }}// Platform API@@ -993,8 +997,10 @@ define(function(require, exports, module) {console.log("Opening natively: " + filePath);if (filePath.indexOf("http://") === 0 || filePath.indexOf("https://") === 0) {window.open(filePath, '_system');- } else {+ } else if (filePath.indexOf("file://") === 0 ) {window.plugins.fileOpener.open(filePath);+ } else {+ window.plugins.fileOpener.open("file://" + filePath);}}