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

Commit 1514d575 authored by Brad Ebinger's avatar Brad Ebinger Committed by Android (Google) Code Review
Browse files

Merge "Add a public method to access the Radio state" into nyc-mr1-dev

parents 6f62aeae fdd6fb42
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2418,6 +2418,10 @@ public class ServiceStateTracker extends Handler {
        }
    }

    public boolean isRadioOn() {
        return mCi.getRadioState() == CommandsInterface.RadioState.RADIO_ON;
    }

    /**
     * A complete "service state" from our perspective is
     * composed of a handful of separate requests to the radio.