Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect Android
Commits
5bf0118b
Commit
5bf0118b
authored
Mar 24, 2019
by
Nicolas Fella
Browse files
Fix file opening
parent
c263e996
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/kde/kdeconnect/Plugins/SharePlugin/CompositeReceiveFileJob.java
View file @
5bf0118b
...
...
@@ -205,6 +205,8 @@ public class CompositeReceiveFileJob extends BackgroundJob<Device, Void> {
}
catch
(
Exception
e
)
{
isRunning
=
false
;
Log
.
e
(
"Shareplugin"
,
"Error receiving file"
,
e
);
int
failedFiles
;
synchronized
(
lock
)
{
failedFiles
=
(
totalNumFiles
-
currentFileNum
+
1
);
...
...
@@ -319,7 +321,7 @@ public class CompositeReceiveFileJob extends BackgroundJob<Device, Void> {
File
file
=
new
File
(
fileDocument
.
getUri
().
getPath
());
Uri
contentUri
=
FileProvider
.
getUriForFile
(
getDevice
().
getContext
(),
"org.kde.kdeconnect_tp.fileprovider"
,
file
);
intent
.
setDataAndType
(
contentUri
,
mimeType
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_READ_URI_PERMISSION
);
intent
.
addFlags
(
Intent
.
FLAG_GRANT_READ_URI_PERMISSION
|
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
}
else
{
intent
.
setDataAndType
(
fileDocument
.
getUri
(),
mimeType
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment