android: fix make_new_contacts

This commit is contained in:
ThomasV 2015-02-25 15:51:04 +01:00
parent 6693a70c72
commit 48838be816
1 changed files with 1 additions and 1 deletions

View File

@ -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)