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

Commit e20f9aa3 authored by Martijn Coenen's avatar Martijn Coenen Committed by Android Git Automerger
Browse files

am eaaa5adb: am d846490a: Merge "Add hidden API to disable NFC (optional persist)." into lmp-dev

* commit 'eaaa5adb4e553ca2482eb57084d077e8847ffc3e':
  Add hidden API to disable NFC (optional persist).
parents ac28e40a a751e2aa
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -701,6 +701,20 @@ public final class NfcAdapter {
        }
    }

    /**
     * Disable NFC hardware.
     * @hide
    */
    @SystemApi
    public boolean disable(boolean persist) {
        try {
            return sService.disable(persist);
        } catch (RemoteException e) {
            attemptDeadServiceRecovery(e);
            return false;
        }
    }

    /**
     * Pauses polling for a {@code timeoutInMs} millis. If polling must be resumed before timeout,
     * use {@link #resumePolling()}.