diff options
author | Martijn Coenen <maco@google.com> | 2012-05-18 14:21:37 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-18 14:21:37 -0700 |
commit | 91ebf1e2e815034504265f1f7472780bcbd30123 (patch) | |
tree | df4e920f9b57fe05dc2be89cd3fbc2d5e5a3ec8d | |
parent | e769540a26900bb809c210c976eaca3ac6cf2605 (diff) | |
parent | 0f2b555fe51f3d8a828cf61d269b8be6eecbf68b (diff) | |
download | packages_apps_nfc-91ebf1e2e815034504265f1f7472780bcbd30123.zip packages_apps_nfc-91ebf1e2e815034504265f1f7472780bcbd30123.tar.gz packages_apps_nfc-91ebf1e2e815034504265f1f7472780bcbd30123.tar.bz2 |
am 0f2b555f: Don\'t use NPP for connection handover.
* commit '0f2b555fe51f3d8a828cf61d269b8be6eecbf68b':
Don't use NPP for connection handover.
-rwxr-xr-x | src/com/android/nfc/P2pLinkManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/nfc/P2pLinkManager.java b/src/com/android/nfc/P2pLinkManager.java index ecded75..2f70f39 100755 --- a/src/com/android/nfc/P2pLinkManager.java +++ b/src/com/android/nfc/P2pLinkManager.java @@ -405,7 +405,11 @@ public class P2pLinkManager implements Handler.Callback, P2pEventListener.Callba return null; } - result = new NdefPushClient().push(m); + if (m != null) { + result = new NdefPushClient().push(m); + } else { + result = false; + } } time = SystemClock.elapsedRealtime() - time; |