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

Commit 61406f17 authored by David Ferguson's avatar David Ferguson
Browse files

SamsungQualcommRIL: evaluate samsungDriverCall in responseCallList()

  * fixes race condition where mRilVersion is not valid when setPhoneType() is
    called. When this happens, the auto-enable of samsungDriverCall for v7 RIL's
    is broken. The result is that hanging up does not work.
Change-Id: I2642110d3683648aaff722c86d3dc21cbd9ee802
parent fdddaed0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -198,7 +198,13 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface {
    public void setPhoneType(int phoneType){
        super.setPhoneType(phoneType);
        isGSM = (phoneType != RILConstants.CDMA_PHONE);
    }

    @Override
    protected Object
    responseCallList(Parcel p) {
        samsungDriverCall = (needsOldRilFeature("newDriverCall") && !isGSM) || mRilVersion < 7 ? false : true;
        return super.responseCallList(p);
    }

    @Override