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

Commit 23894410 authored by Steve Pomeroy's avatar Steve Pomeroy
Browse files

Fix broken link in NfcAdapter.java and clarify documentation

Bug: 356213080
Test: n/a
Change-Id: Ib26508245714dcdeb8012eab63c3ae27e5a5a062
parent 4454e7c7
Loading
Loading
Loading
Loading
+9 −7
Original line number Original line Diff line number Diff line
@@ -1166,10 +1166,11 @@ public final class NfcAdapter {




    /**
    /**
     * Returns whether the device supports observer mode or not. When observe
     * Returns whether the device supports observe mode or not. When observe mode is enabled, the
     * mode is enabled, the NFC hardware will listen for NFC readers, but not
     * NFC hardware will listen to NFC readers, but not respond to them. While enabled, observed
     * respond to them. When observe mode is disabled, the NFC hardware will
     * polling frames will be sent to the APDU service (see {@link #setObserveModeEnabled(boolean)}.
     * resoond to the reader and proceed with the transaction.
     * When observe mode is disabled (or if it's not supported), the NFC hardware will automatically
     * respond to the reader and proceed with the transaction.
     * @return true if the mode is supported, false otherwise.
     * @return true if the mode is supported, false otherwise.
     */
     */
    @FlaggedApi(Flags.FLAG_NFC_OBSERVE_MODE)
    @FlaggedApi(Flags.FLAG_NFC_OBSERVE_MODE)
@@ -1193,9 +1194,10 @@ public final class NfcAdapter {
     * and simply observe and notify the APDU service of polling loop frames. See
     * and simply observe and notify the APDU service of polling loop frames. See
     * {@link #isObserveModeSupported()} for a description of observe mode. Only the package of the
     * {@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
     * currently preferred service (the service set as preferred by the current foreground
     * application via {@link CardEmulation#setPreferredService(Activity, ComponentName)} or the
     * application via {@link android.nfc.cardemulation.CardEmulation#setPreferredService(Activity,
     * current Default Wallet Role Holder {@link android.app.role.RoleManager#ROLE_WALLET}),
     * android.content.ComponentName)} or the current Default Wallet Role Holder
     * otherwise a call to this method will fail and return false.
     * {@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
     * @param enabled false disables observe mode to allow the transaction to proceed while true
     *                enables observe mode and does not allow transactions to proceed.
     *                enables observe mode and does not allow transactions to proceed.