Skip to content

Commit

Permalink
Merge pull request #1157 from telatao/patch-4
Browse files Browse the repository at this point in the history
Fix for the ticket #1156
  • Loading branch information
kusma authored May 2, 2018
2 parents b05102e + 7020a55 commit 7c81e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Fuse.Share/ShareModule.uno
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ namespace Fuse.Share

if defined(android || iOS)
{
var description = args.Length>1 ? "" + args[1] : "";
var description = args.Length>2 ? "" + args[2] : "";
if defined(android)
{
AndroidShareImpl.ShareFile("file://" + path, type, description);
Expand All @@ -151,7 +151,7 @@ namespace Fuse.Share
else if defined(iOS)
{
float2 position = float2(0);
if (args.Length > 2 && TryGetPosition(args[2], out position))
if (args.Length > 3 && TryGetPosition(args[3], out position))
iOSShareImpl.ShareFile("file://" + path, type, description, position);
else
iOSShareImpl.ShareFile("file://" + path, type, description);
Expand Down

0 comments on commit 7c81e4b

Please sign in to comment.