From 226869e200bf5c63b64ccbe86fbb8128ac9dffb6 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Fri, 17 Jun 2016 09:43:23 +0200 Subject: [PATCH] Fixed shared urls and text having the wrong package type --- src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java | 2 +- src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java index e5f5fe05..300be647 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java @@ -170,7 +170,7 @@ public class ShareActivity extends ActionBarActivity { } catch (Exception e) { isUrl = false; } - NetworkPackage np = new NetworkPackage(SharePlugin.PACKAGE_TYPE_SHARE); + NetworkPackage np = new NetworkPackage(SharePlugin.PACKAGE_TYPE_SHARE_REQUEST); if (isUrl) { np.set("url", text); } else { diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java index dbaf7d6c..bea0fdd3 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java @@ -58,7 +58,7 @@ import java.util.ArrayList; public class SharePlugin extends Plugin { - public final static String PACKAGE_TYPE_SHARE = "kdeconnect.share"; + //public final static String PACKAGE_TYPE_SHARE = "kdeconnect.share"; public final static String PACKAGE_TYPE_SHARE_REQUEST = "kdeconnect.share.request"; final static boolean openUrlsDirectly = true;