Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 256380c4 authored by Brad Lassey's avatar Brad Lassey Committed by Roshan
Browse files

Document that only the currently preferred service can enable and disable observe mode

Bug: 335877167
Test: Only a javadoc change
Merged-In: I7353e9f960ae571c9e540b0b28e1d268a3f2bd16
Change-Id: I7353e9f960ae571c9e540b0b28e1d268a3f2bd16
parent c9e75219
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1250,7 +1250,11 @@ public final class NfcAdapter {
    /**
     * Controls whether the NFC adapter will allow transactions to proceed or be in observe mode
     * and simply observe and notify the APDU service of polling loop frames. See
     * {@link #isObserveModeSupported()} for a description of observe mode.
     * {@link #isObserveModeSupported()} for a description of observe mode. Only the package of the
     * currently preferred service (the service set as preferred by the current foreground
     * application via {@link CardEmulation#setPreferredService(Activity, ComponentName)} or the
     * current Default Wallet Role Holder {@link android.app.role.RoleManager#ROLE_WALLET}),
     * otherwise a call to this method will fail and return false.
     *
     * @param enabled false disables observe mode to allow the transaction to proceed while true
     *                enables observe mode and does not allow transactions to proceed.