summaryrefslogtreecommitdiffstats
path: root/src/com/android/nfc
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-05-21 12:45:06 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-21 12:45:06 -0700
commitd47de4a5de519ffd56aefb04c37537a9c1fc2275 (patch)
tree41a1d509cc2469dfd48eade16f86e0911de03317 /src/com/android/nfc
parent4e7293861f218e617c17d5af02ae9c797fc4a48c (diff)
parent91ebf1e2e815034504265f1f7472780bcbd30123 (diff)
downloadpackages_apps_nfc-d47de4a5de519ffd56aefb04c37537a9c1fc2275.zip
packages_apps_nfc-d47de4a5de519ffd56aefb04c37537a9c1fc2275.tar.gz
packages_apps_nfc-d47de4a5de519ffd56aefb04c37537a9c1fc2275.tar.bz2
am 91ebf1e2: am 0f2b555f: Don\'t use NPP for connection handover.
* commit '91ebf1e2e815034504265f1f7472780bcbd30123': Don't use NPP for connection handover.
Diffstat (limited to 'src/com/android/nfc')
-rwxr-xr-xsrc/com/android/nfc/P2pLinkManager.java6
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;