Skip to content

Commit

Permalink
feat(Clipboard): Support storing multiple data items on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed May 21, 2020
1 parent f41f7da commit 482b0dd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ public static void SetContent(DataPackage content)
items.Add(new ClipData.Item(content.Text));
mimeTypes.Add("text/plaintext");
}
else if (content.Uri != null)

if (content.Uri != null)
{
var androidUri = Android.Net.Uri.Parse(content.Uri.ToString());
items.Add(new ClipData.Item(androidUri));
mimeTypes.Add("text/uri-list");
}
else if (content.Html != null)

if (content.Html != null)
{
// Matches all tags
Regex regex = new Regex("(<.*?>\\s*)+", RegexOptions.Singleline);
Expand Down

0 comments on commit 482b0dd

Please sign in to comment.