summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/browser/NfcHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/browser/NfcHandler.java b/src/com/android/browser/NfcHandler.java
index bdfe25e..bbac640 100644
--- a/src/com/android/browser/NfcHandler.java
+++ b/src/com/android/browser/NfcHandler.java
@@ -58,8 +58,7 @@ public class NfcHandler implements NfcAdapter.NdefPushCallback {
String currentUrl = currentTab.getUrl();
if (currentUrl != null && currentTab.getWebView() != null &&
!currentTab.getWebView().isPrivateBrowsingEnabled()) {
- NdefRecord record = new NdefRecord(NdefRecord.TNF_ABSOLUTE_URI,
- NdefRecord.RTD_URI, new byte[] {}, currentUrl.getBytes());
+ NdefRecord record = NdefRecord.createUri(currentUrl);
NdefMessage msg = new NdefMessage(new NdefRecord[] { record });
return msg;
} else {