Skip to content
Browse files

Merge "Fix a bug with absolute URI processing." into gingerbread

  • Loading branch information...
2 parents d30c5d6 + 5223d6a commit b8318ada928026f1d118ec918260796106b83dd2 @jham jham committed with Android (Google) Code Review May 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/android/nfc/NfcService.java
View
4 src/com/android/nfc/NfcService.java
@@ -2589,7 +2589,7 @@ private boolean setTypeOrDataFromNdef(Intent intent, NdefRecord record) {
}
case NdefRecord.TNF_ABSOLUTE_URI: {
- intent.setData(Uri.parse(new String(record.getPayload(), Charsets.UTF_8)));
+ intent.setData(Uri.parse(new String(type, Charsets.UTF_8)));
return true;
}
@@ -2611,7 +2611,7 @@ private boolean setTypeOrDataFromNdef(Intent intent, NdefRecord record) {
intent.setData(parseWellKnownUriRecord(subRecord));
return true;
} else if (subTnf == NdefRecord.TNF_ABSOLUTE_URI) {
- intent.setData(Uri.parse(new String(subRecord.getPayload(),
+ intent.setData(Uri.parse(new String(subRecord.getType(),
Charsets.UTF_8)));
return true;
}

0 comments on commit b8318ad

Please sign in to comment.
Something went wrong with that request. Please try again.