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 ...@@ -108,15 +108,17 @@ public class ShareExtendPlugin implements MethodChannel.MethodCallHandler, Plugi
} }
ShareUtils.grantUriPermission(getContext(), uriList, shareIntent); ShareUtils.grantUriPermission(getContext(), uriList, shareIntent);
} }
startChooserActivity(shareIntent, sharePanelTitle); startChooserActivity(shareIntent, sharePanelTitle, uriList);
} }
private Context getContext() { private Context getContext() {
return mRegistrar.activity() != null ? mRegistrar.activity() : mRegistrar.context(); 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); Intent chooserIntent = Intent.createChooser(shareIntent, sharePanelTitle);
ShareUtils.grantUriPermission(getContext(), uriList, chooserIntent);
if (mRegistrar.activity() != null) { if (mRegistrar.activity() != null) {
mRegistrar.activity().startActivity(chooserIntent); mRegistrar.activity().startActivity(chooserIntent);
} else { } 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