Qml App: better Android interaction on URL export

Clipboard usage is uncommon in Android so export the URL via Intent too
that is the common pattern on Android
This commit is contained in:
Gioacchino Mazzurco 2017-07-04 16:27:12 +02:00
parent a97ba803d8
commit dafaa568b8
10 changed files with 205 additions and 9 deletions

View file

@ -50,15 +50,15 @@ Item
var radix = JSON.parse(par.response).data.cert_string
var name = mainWindow.user_name
var encodedName = UriJs.URI.encode(name)
ClipboardWrapper.postToClipBoard(
var nodeUrl = (
"retroshare://certificate?" +
"name=" + encodedName +
"&radix=" + UriJs.URI.encode(radix) +
"&location=" + encodedName
)
"&location=" + encodedName )
ClipboardWrapper.postToClipBoard(nodeUrl)
linkCopiedPopup.itemName = name
linkCopiedPopup.open()
platformGW.shareUrl(nodeUrl);
})
}
}