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

Commit 410298cb authored by Jack Yu's avatar Jack Yu
Browse files

Removed the usage of setState, which is a deprecated API.

The caller should call setVoiceRegState instead. This also helps
reduce Rlog since we will not see the complaining debug message
about using this deprecated API anymore.

bug: 26404646
Change-Id: I4562ef9b088ab051a291fe1b5ad29216fe5c33e7
parent 89eb8ad7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1611,7 +1611,7 @@ public class ServiceStateTracker extends Handler {
                    }

                    mGsmRoaming = regCodeIsRoaming(regState);
                    mNewSS.setState(regCodeToServiceState(regState));
                    mNewSS.setVoiceRegState(regCodeToServiceState(regState));
                    mNewSS.setRilVoiceRadioTechnology(type);

                    boolean isVoiceCapable = mPhone.getContext().getResources()
@@ -1706,7 +1706,7 @@ public class ServiceStateTracker extends Handler {
                    boolean cdmaRoaming =
                            regCodeIsRoaming(registrationState) && !isRoamIndForHomeSystem(states[10]);
                    mNewSS.setVoiceRoaming(cdmaRoaming);
                    mNewSS.setState (regCodeToServiceState(registrationState));
                    mNewSS.setVoiceRegState(regCodeToServiceState(registrationState));

                    mNewSS.setRilVoiceRadioTechnology(radioTechnology);

+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ public class ImsPhone extends ImsPhoneBase {
    }

    /* package */ void setServiceState(int state) {
        mSS.setState(state);
        mSS.setVoiceRegState(state);
        updateDataServiceState();
    }

+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ abstract class ImsPhoneBase extends Phone {
        // FIXME: we may need to provide this when data connectivity is lost
        // or when server is down
        ServiceState s = new ServiceState();
        s.setState(ServiceState.STATE_IN_SERVICE);
        s.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
        return s;
    }

+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ abstract class SipPhoneBase extends Phone {
        // FIXME: we may need to provide this when data connectivity is lost
        // or when server is down
        ServiceState s = new ServiceState();
        s.setState(ServiceState.STATE_IN_SERVICE);
        s.setVoiceRegState(ServiceState.STATE_IN_SERVICE);
        return s;
    }