android: fix make_new_contacts
This commit is contained in:
parent
6693a70c72
commit
48838be816
|
@ -478,7 +478,7 @@ def make_new_contact():
|
||||||
code = droid.scanBarcode()
|
code = droid.scanBarcode()
|
||||||
r = code.result
|
r = code.result
|
||||||
if r:
|
if r:
|
||||||
data = r['extras']['SCAN_RESULT']
|
data = str(r['extras']['SCAN_RESULT']).strip()
|
||||||
if data:
|
if data:
|
||||||
if re.match('^bitcoin:', data):
|
if re.match('^bitcoin:', data):
|
||||||
address, _, _, _, _ = util.parse_URI(data)
|
address, _, _, _, _ = util.parse_URI(data)
|
||||||
|
|
Loading…
Reference in New Issue