summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NfcHandler.java
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2011-06-30 14:41:52 -0500
committerJeff Hamilton <jham@android.com>2011-06-30 14:50:38 -0500
commitc64ba729547915a1c15d9cd614565f908b6cd0f9 (patch)
tree06ff5c2896e00907162774e426517b646486195d /src/com/android/browser/NfcHandler.java
parentf64f0f0632f9166fb084d5d7e26ad198f66c31aa (diff)
downloadpackages_apps_Browser-c64ba729547915a1c15d9cd614565f908b6cd0f9.zip
packages_apps_Browser-c64ba729547915a1c15d9cd614565f908b6cd0f9.tar.gz
packages_apps_Browser-c64ba729547915a1c15d9cd614565f908b6cd0f9.tar.bz2
Fix 0-click from the browser.
Change-Id: I48bdaa9b908e7890dc9cb0b4ad67724fd95d6d77
Diffstat (limited to 'src/com/android/browser/NfcHandler.java')
-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 {