commit 48838be816fc897a8687e95e6f86d8c40e5a9bfc
parent 6693a70c72dc90ef3610b1826f22159de3aa9b21
Author: ThomasV <thomasv@gitorious>
Date: Wed, 25 Feb 2015 15:51:04 +0100
android: fix make_new_contacts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gui/android.py b/gui/android.py
@@ -478,7 +478,7 @@ def make_new_contact():
code = droid.scanBarcode()
r = code.result
if r:
- data = r['extras']['SCAN_RESULT']
+ data = str(r['extras']['SCAN_RESULT']).strip()
if data:
if re.match('^bitcoin:', data):
address, _, _, _, _ = util.parse_URI(data)