Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
b2844911
Commit
b2844911
authored
May 16, 2019
by
Evan W. Patton
Committed by
Jeffrey Schiller
May 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fallback to application/octet-stream for unknown file types
Change-Id: I2dcc304bbca68827c0b92dd5b1ef012d21de1db1
parent
77150161
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
appinventor/components/src/com/google/appinventor/components/runtime/Sharing.java
...rc/com/google/appinventor/components/runtime/Sharing.java
+4
-0
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/Sharing.java
View file @
b2844911
...
...
@@ -98,6 +98,10 @@ public class Sharing extends AndroidNonvisibleComponent {
String
fileExtension
=
file
.
substring
(
file
.
lastIndexOf
(
"."
)+
1
).
toLowerCase
();
MimeTypeMap
mime
=
MimeTypeMap
.
getSingleton
();
String
type
=
mime
.
getMimeTypeFromExtension
(
fileExtension
);
if
(
type
==
null
)
{
// Fix for #1701: We don't know what it is, but it's at least a sequence of bytes (we hope)
type
=
"application/octet-stream"
;
}
Uri
shareableUri
=
NougatUtil
.
getPackageUri
(
form
,
imageFile
);
Intent
shareIntent
=
new
Intent
(
Intent
.
ACTION_SEND
);
...
...
Write
Preview
Markdown
is supported
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