Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing file refresh issue on Android

uggrock6c7bef48110e
diff --git a/data/js/postioapi.js b/data/js/postioapi.js
index d0169a02e..215665f15 100644
--- a/data/js/postioapi.js
+++ b/data/js/postioapi.js
@@ -39,6 +39,9 @@ define(function(require, exports, module) {
if (lastOpenedFile !== undefined) {
console.log('Last opened Filename: ' + lastOpenedFile);
// TODO handle case in which a file opened for editing and a tag has been added / file renamed
+ if(isCordova) {
+ lastOpenedFile = lastOpenedFile.substring(("file://").length, lastOpenedFile.length);
+ }
if (TSCORE.FileOpener.isFileOpened() && oldFilePath == lastOpenedFile) {
TSCORE.FileOpener.openFile(newFilePath);
}