mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 21:27:40 +00:00
Fixed shared urls and text having the wrong package type
This commit is contained in:
parent
bbc1113710
commit
226869e200
@ -170,7 +170,7 @@ public class ShareActivity extends ActionBarActivity {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
isUrl = false;
|
isUrl = false;
|
||||||
}
|
}
|
||||||
NetworkPackage np = new NetworkPackage(SharePlugin.PACKAGE_TYPE_SHARE);
|
NetworkPackage np = new NetworkPackage(SharePlugin.PACKAGE_TYPE_SHARE_REQUEST);
|
||||||
if (isUrl) {
|
if (isUrl) {
|
||||||
np.set("url", text);
|
np.set("url", text);
|
||||||
} else {
|
} else {
|
||||||
|
@ -58,7 +58,7 @@ import java.util.ArrayList;
|
|||||||
|
|
||||||
public class SharePlugin extends Plugin {
|
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";
|
public final static String PACKAGE_TYPE_SHARE_REQUEST = "kdeconnect.share.request";
|
||||||
|
|
||||||
final static boolean openUrlsDirectly = true;
|
final static boolean openUrlsDirectly = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user