mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 02:05:19 +00:00
kivy: add title to do_share
This commit is contained in:
parent
7c42957a7c
commit
362e4be6f0
3 changed files with 4 additions and 4 deletions
|
@ -346,7 +346,7 @@ class ElectrumWindow(App):
|
||||||
activity.bind(on_activity_result=on_qr_result)
|
activity.bind(on_activity_result=on_qr_result)
|
||||||
integrator.initiateScan()
|
integrator.initiateScan()
|
||||||
|
|
||||||
def do_share(self, data):
|
def do_share(self, data, title):
|
||||||
if platform != 'android':
|
if platform != 'android':
|
||||||
return
|
return
|
||||||
from jnius import autoclass, cast
|
from jnius import autoclass, cast
|
||||||
|
@ -358,7 +358,7 @@ class ElectrumWindow(App):
|
||||||
sendIntent.putExtra(Intent.EXTRA_TEXT, JS(data))
|
sendIntent.putExtra(Intent.EXTRA_TEXT, JS(data))
|
||||||
PythonActivity = autoclass('org.renpy.android.PythonActivity')
|
PythonActivity = autoclass('org.renpy.android.PythonActivity')
|
||||||
currentActivity = cast('android.app.Activity', PythonActivity.mActivity)
|
currentActivity = cast('android.app.Activity', PythonActivity.mActivity)
|
||||||
it = Intent.createChooser(sendIntent, cast('java.lang.CharSequence', JS("Share Bitcoin Request")))
|
it = Intent.createChooser(sendIntent, cast('java.lang.CharSequence', JS(title)))
|
||||||
currentActivity.startActivity(it)
|
currentActivity.startActivity(it)
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
|
|
@ -587,7 +587,7 @@ class ShowXpubDialog(WizardDialog):
|
||||||
self.app._clipboard.copy(self.xpub)
|
self.app._clipboard.copy(self.xpub)
|
||||||
|
|
||||||
def do_share(self):
|
def do_share(self):
|
||||||
self.app.do_share(self.xpub)
|
self.app.do_share(self.xpub, _("Master Public Key"))
|
||||||
|
|
||||||
def do_qr(self):
|
def do_qr(self):
|
||||||
from qr_dialog import QRDialog
|
from qr_dialog import QRDialog
|
||||||
|
|
|
@ -358,7 +358,7 @@ class ReceiveScreen(CScreen):
|
||||||
|
|
||||||
def do_share(self):
|
def do_share(self):
|
||||||
uri = self.get_URI()
|
uri = self.get_URI()
|
||||||
self.app.do_share(uri)
|
self.app.do_share(uri, _("Share Bitcoin Request"))
|
||||||
|
|
||||||
def do_copy(self):
|
def do_copy(self):
|
||||||
uri = self.get_URI()
|
uri = self.get_URI()
|
||||||
|
|
Loading…
Add table
Reference in a new issue