Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShareExtend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
ShareExtend
Commits
1a4e054f
Commit
1a4e054f
authored
May 29, 2020
by
Steve Gehrman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix3
parent
7d81759e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
android/src/main/java/com/zt/shareextend/ShareExtendPlugin.java
...d/src/main/java/com/zt/shareextend/ShareExtendPlugin.java
+3
-7
No files found.
android/src/main/java/com/zt/shareextend/ShareExtendPlugin.java
View file @
1a4e054f
...
...
@@ -66,7 +66,7 @@ public class ShareExtendPlugin implements MethodChannel.MethodCallHandler, Plugi
}
private
void
share
(
List
<
String
>
list
,
String
type
,
String
sharePanelTitle
,
String
subject
)
{
ArrayList
<
Uri
>
uriList
;
ArrayList
<
Uri
>
uriList
=
new
ArrayList
<>();
;
if
(
list
==
null
||
list
.
isEmpty
())
{
throw
new
IllegalArgumentException
(
"Non-empty list expected"
);
...
...
@@ -87,7 +87,6 @@ public class ShareExtendPlugin implements MethodChannel.MethodCallHandler, Plugi
}
}
uriList
=
new
ArrayList
<>();
for
(
String
path
:
list
)
{
File
f
=
new
File
(
path
);
Uri
uri
=
ShareUtils
.
getUriForFile
(
getContext
(),
f
);
...
...
@@ -119,10 +118,7 @@ public class ShareExtendPlugin implements MethodChannel.MethodCallHandler, Plugi
private
void
startChooserActivity
(
Intent
shareIntent
,
String
sharePanelTitle
,
ArrayList
<
Uri
>
uriList
)
{
Intent
chooserIntent
=
Intent
.
createChooser
(
shareIntent
,
sharePanelTitle
);
if
(
uriList
!=
null
)
{
ShareUtils
.
grantUriPermission
(
getContext
(),
uriList
,
chooserIntent
);
}
if
(
mRegistrar
.
activity
()
!=
null
)
{
mRegistrar
.
activity
().
startActivity
(
chooserIntent
);
...
...
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