commit 6ccb1dd207dd5604016f5b0056afb17e69773b6d
parent 16397b1ed772234bc617444fcdc215a2b4323adc
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 6 Feb 2016 16:35:21 +0100
rm unneeded files
Diffstat:
4 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py
@@ -294,7 +294,24 @@ class ReceiveScreen(CScreen):
qr.set_data(uri)
def do_copy(self):
+ from kivy.utils import platform
+
uri = self.get_URI()
+
+ if platform == 'android':
+ from jnius import autoclass, cast
+ JS = autoclass('java.lang.String')
+ Intent = autoclass('android.content.Intent')
+ sendIntent = Intent()
+ sendIntent.setAction(Intent.ACTION_SEND)
+ sendIntent.setType("text/plain")
+ sendIntent.putExtra(Intent.EXTRA_TEXT, JS(uri))
+ PythonActivity = autoclass('org.renpy.android.PythonActivity')
+ currentActivity = cast('android.app.Activity', PythonActivity.mActivity)
+ it = Intent.createChooser(sendIntent, cast('java.lang.CharSequence', JS("Share Bitcoin Request")))
+ currentActivity.startActivity(it)
+ return
+
self.app._clipboard.copy(uri)
self.app.show_info(_('Request copied to clipboard'))
diff --git a/lib/android/libiconv.so b/lib/android/libiconv.so
Binary files differ.
diff --git a/lib/android/libzbarjni.so b/lib/android/libzbarjni.so
Binary files differ.
diff --git a/lib/android/zbar.jar b/lib/android/zbar.jar
Binary files differ.