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

Commit 253c509c authored by Nick Pelly's avatar Nick Pelly
Browse files

Make sure service handles are live before passing to other objects.

Change-Id: Ia3fa799b56463f313da0e84a50c4dc75d584eaca
parent 200ca02f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -316,6 +316,7 @@ public final class NfcAdapter {
     * @hide
     */
    public INfcAdapter getService() {
        isEnabled();  // NOP call to recover sService if it is stale
        return sService;
    }

@@ -324,6 +325,7 @@ public final class NfcAdapter {
     * @hide
     */
    public INfcTag getTagService() {
        isEnabled();  // NOP call to recover sTagService if it is stale
        return sTagService;
    }