diff options
author | Jeff Hamilton <jham@android.com> | 2011-06-30 14:41:52 -0500 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2011-06-30 14:50:38 -0500 |
commit | c64ba729547915a1c15d9cd614565f908b6cd0f9 (patch) | |
tree | 06ff5c2896e00907162774e426517b646486195d /src/com | |
parent | f64f0f0632f9166fb084d5d7e26ad198f66c31aa (diff) | |
download | packages_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')
-rw-r--r-- | src/com/android/browser/NfcHandler.java | 3 |
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 { |