diff options
author | Jeff Hamilton <jham@android.com> | 2011-06-30 13:08:58 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-30 13:08:58 -0700 |
commit | e45587844efeb521540a5d36cb6d4ead51f44ceb (patch) | |
tree | adec2924dcba649297d03c02b5cec41cf8cf7daa | |
parent | 4399b13ca463824bbab1ba422f4004cff100b483 (diff) | |
parent | c64ba729547915a1c15d9cd614565f908b6cd0f9 (diff) | |
download | packages_apps_browser-e45587844efeb521540a5d36cb6d4ead51f44ceb.zip packages_apps_browser-e45587844efeb521540a5d36cb6d4ead51f44ceb.tar.gz packages_apps_browser-e45587844efeb521540a5d36cb6d4ead51f44ceb.tar.bz2 |
Merge "Fix 0-click from the browser."
-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 { |