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

Commit 82bd50a7 authored by Shareef Ali's avatar Shareef Ali Committed by Dan Pasanen
Browse files

HTCQualcommRIL: skip setCdmaSubscriptionSource if CDMA_SUBSCRIPTION_MODE is null

Change-Id: Idf842a6def9151d500bcb2d8ee3e21010c725e20
parent f0c009b9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.os.Looper;
import android.os.Message;
import android.os.Parcel;
import android.os.SystemProperties;
import android.provider.Settings;
import android.text.TextUtils;
import android.telephony.CellInfo;
import android.telephony.Rlog;
@@ -164,7 +165,10 @@ public class HTCQualcommRIL extends RIL implements CommandsInterface {
                // Trigger socket reset if RIL connect is called again
                SystemProperties.set("ril.socket.reset", "1");
                setPreferredNetworkType(mPreferredNetworkType, null);
                setCdmaSubscriptionSource(mCdmaSubscription, null);
                int cdmaSubscription = Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.CDMA_SUBSCRIPTION_MODE, -1);
                if(cdmaSubscription != -1) {
                    setCdmaSubscriptionSource(cdmaSubscription, null);
                }
                setCellInfoListRate(Integer.MAX_VALUE, null);
                notifyRegistrantsRilConnectionChanged(((int[])ret)[0]);
                break;