commit cf56b8a63cc05e3297412eb341fcfb2a1933192b
parent 461a5960e16764271cc9501a910e87560c9c7c2a
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 22 Feb 2016 11:33:42 +0100
Merge pull request #1683 from akshayaurora/intent
kivy:android:check for intent on activity start
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py
@@ -354,6 +354,10 @@ class ElectrumWindow(App):
# bind intent for bitcoin: URI scheme
if platform == 'android':
from android import activity
+ from jnius import autoclass
+ PythonActivity = autoclass('org.renpy.android.PythonActivity')
+ mactivity = PythonActivity.mActivity
+ self.on_new_intent(mactivity.getIntent())
activity.bind(on_new_intent=self.on_new_intent)
# URI passed in config