Commit cc46a34d authored by Steve Gehrman's avatar Steve Gehrman

fixed image share bug

parent bac5b67c
......@@ -108,15 +108,17 @@ public class ShareExtendPlugin implements MethodChannel.MethodCallHandler, Plugi
}
ShareUtils.grantUriPermission(getContext(), uriList, shareIntent);
}
startChooserActivity(shareIntent, sharePanelTitle);
startChooserActivity(shareIntent, sharePanelTitle, uriList);
}
private Context getContext() {
return mRegistrar.activity() != null ? mRegistrar.activity() : mRegistrar.context();
}
private void startChooserActivity(Intent shareIntent, String sharePanelTitle) {
private void startChooserActivity(Intent shareIntent, String sharePanelTitle, ArrayList<Uri> uriList) {
Intent chooserIntent = Intent.createChooser(shareIntent, sharePanelTitle);
ShareUtils.grantUriPermission(getContext(), uriList, chooserIntent);
if (mRegistrar.activity() != null) {
mRegistrar.activity().startActivity(chooserIntent);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment