From 482b0dd769e6fcd8f29993acf684c638c47fd810 Mon Sep 17 00:00:00 2001 From: Martin Zikmund Date: Thu, 21 May 2020 15:42:47 +0200 Subject: [PATCH] feat(Clipboard): Support storing multiple data items on Android --- .../ApplicationModel/DataTransfer/Clipboard.Android.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Uno.UWP/ApplicationModel/DataTransfer/Clipboard.Android.cs b/src/Uno.UWP/ApplicationModel/DataTransfer/Clipboard.Android.cs index f0090113e97f..8512c52fdfb5 100644 --- a/src/Uno.UWP/ApplicationModel/DataTransfer/Clipboard.Android.cs +++ b/src/Uno.UWP/ApplicationModel/DataTransfer/Clipboard.Android.cs @@ -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);