Skip to content

Commit

Permalink
v1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlyjack committed Feb 10, 2024
1 parent 43838e5 commit ffd2cea
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/plugins.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"plugins":["cordova-plugin-buildinfo","cordova-plugin-device","cordova-plugin-file","cordova-plugin-ftp","cordova-plugin-iap","cordova-plugin-server","cordova-plugin-sftp","cordova-clipboard","cordova-plugin-vibration","cordova-plugin-sdcard","cordova-plugin-browser","cordova-plugin-system"]}
{"plugins":["cordova-plugin-buildinfo","cordova-plugin-device","cordova-plugin-file","cordova-plugin-ftp","cordova-plugin-iap","cordova-plugin-server","cordova-plugin-sftp","cordova-clipboard","cordova-plugin-vibration","cordova-plugin-sdcard","cordova-plugin-system","cordova-plugin-browser"]}
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
- Fixes
- [x] **File** | 931
- Fixed not able share, edit or open with other apps.
- Fixed file rename not working properly. | 934
- [x] **Preview** | 934
- Fixed preview where it opens browser two times.

## [1.8.8]

Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8' ?>
<widget id="com.foxdebug.acode" android-versionCode="935" version="1.9.0"
<widget id="com.foxdebug.acode" android-versionCode="936" version="1.9.0"
xmlns="http://www.w3.org/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"cordova-plugin-server": {},
"cordova-plugin-iap": {},
"cordova-plugin-ftp": {},
"cordova-plugin-sdcard": {},
"cordova-plugin-system": {},
"cordova-plugin-browser": {}
"cordova-plugin-browser": {},
"cordova-plugin-sdcard": {}
},
"platforms": [
"android"
Expand Down
1 change: 1 addition & 0 deletions src/fileSystem/internalFs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ajax from '@deadlyjack/ajax';
import fsOperation from 'fileSystem';
import Url from 'utils/Url';
import { decode, encode } from 'utils/encodings';
import helpers from 'utils/helpers';
Expand Down
2 changes: 2 additions & 0 deletions src/lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async function run(
}

next();
return;
} catch (err) {
helpers.error(err);
return;
Expand Down Expand Up @@ -475,6 +476,7 @@ async function run(
* Opens the preview in browser
*/
function openBrowser() {
console.count('openBrowser');
const src = `http://localhost:${port}/${filename}`;
if (target === 'browser') {
system.openInBrowser(src);
Expand Down
5 changes: 5 additions & 0 deletions src/plugins/sdcard/src/android/SDcard.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,13 @@ public void run() {

try {
DocumentFile file = DocumentFile.fromTreeUri(context, fileUri);
// If only case change, OS adds '(<number>)' as suffix, to avoid that we need to rename to a temporary name first
if (newFile.equalsIgnoreCase(file.getName())) {
file.renameTo(newFile + "_temp");
}

if (file.renameTo(newFile)) {
String name = file.getName();
docId = DocumentsContract.getDocumentId(file.getUri());
callback.success(srcUri + SEPARATOR + docId);
} else {
Expand Down

0 comments on commit ffd2cea

Please sign in to comment.