summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-12-12 09:32:01 -0800
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-12-12 09:32:01 -0800
commit7c0eb6abd91005b947577c039abf683fbd9eb533 (patch)
tree1794e6e03c4be58f591dcca84e6cbe4503a29839
parent6f7ba915098cf2d2c9a64b304620cee266a25cd0 (diff)
parentb5d00aeb283d816669c6fc8c47537cab148defdf (diff)
Merge "Add to javadoc for onAidConflictOccurred to clarify what can be done to recitify that error." into main am: dab4a55307 am: b5d00aeb28
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3402988 Change-Id: Ica8c266fc0e2b56154959abcd4d6d46fd7a1d92e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--nfc/java/android/nfc/cardemulation/CardEmulation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/nfc/java/android/nfc/cardemulation/CardEmulation.java b/nfc/java/android/nfc/cardemulation/CardEmulation.java
index e0bc15fe6e94..baae05b4ea03 100644
--- a/nfc/java/android/nfc/cardemulation/CardEmulation.java
+++ b/nfc/java/android/nfc/cardemulation/CardEmulation.java
@@ -1327,7 +1327,10 @@ public final class CardEmulation {
/**
* This method is called when an AID conflict is detected during an NFC transaction. This
- * can happen when multiple services are registered for the same AID.
+ * can happen when multiple services are registered for the same AID. If your service is
+ * registered for this AID you may want to instruct users to bring your app to the
+ * foreground and ensure you call {@link #setPreferredService(Activity, ComponentName)}
+ * to ensure the transaction is routed to your service.
*
* @param aid The AID that is in conflict
*/