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

Commit e03b8465 authored by Shareef Ali's avatar Shareef Ali Committed by Steve Kondik
Browse files

SamsungQualcommRIL: fix handoff for good.

OperatorCheck: Add last known of good config when the array is null.
When the radio reset, it calls data connect. This fixes cases where
data is null because of this issue and causes apn to be null out.

Change-Id: Ic8e1d22f56db77ef698d3a89ecf27d30a7a2ddd8
parent bd48afbf
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -71,6 +71,7 @@ public class SamsungQualcommRIL extends QualcommMSIM42RIL implements CommandsInt
    private boolean oldRilState = needsOldRilFeature("exynos4RadioState");
    private boolean oldRilState = needsOldRilFeature("exynos4RadioState");
    private boolean googleEditionSS = needsOldRilFeature("googleEditionSS");
    private boolean googleEditionSS = needsOldRilFeature("googleEditionSS");
    private boolean driverCall = needsOldRilFeature("newDriverCall");
    private boolean driverCall = needsOldRilFeature("newDriverCall");
    private String[] lastKnownOfGood = {null, null, null};
    public SamsungQualcommRIL(Context context, int networkMode,
    public SamsungQualcommRIL(Context context, int networkMode,
            int cdmaSubscription) {
            int cdmaSubscription) {
        super(context, networkMode, cdmaSubscription);
        super(context, networkMode, cdmaSubscription);
@@ -575,6 +576,10 @@ public class SamsungQualcommRIL extends QualcommMSIM42RIL implements CommandsInt
                } else if (response[i].equals("31000")|| response[i].equals("11111") || response[i].equals("123456") || response[i].equals("31099") || (response[i].equals("") && !isGSM)){
                } else if (response[i].equals("31000")|| response[i].equals("11111") || response[i].equals("123456") || response[i].equals("31099") || (response[i].equals("") && !isGSM)){
                        response[i]=homeOperator;
                        response[i]=homeOperator;
                }
                }
                lastKnownOfGood[i]=response[i];
            }else{
                if(lastKnownOfGood[i]!=null)
                    response[i]=lastKnownOfGood[i];
            }
            }
        }
        }
        return response;
        return response;