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

Commit 18764536 authored by Chi Zhang's avatar Chi Zhang Committed by Gerrit Code Review
Browse files

Merge "Fix RAT in DATA_STALL_RECOVERY."

parents 1dbf9312 a4522275
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -53,11 +53,12 @@ public class DataStallRecoveryStats {
                signalStrength, recoveryAction, isOpportunistic, isMultiSim, band);
    }

    /** Returns the RAT used for data (including IWLAN). */
    private static @NetworkType int getRat(Phone phone) {
        ServiceStateTracker serviceStateTracker = phone.getServiceStateTracker();
        ServiceState serviceState =
                serviceStateTracker != null ? serviceStateTracker.getServiceState() : null;
        return serviceState != null ? serviceState.getVoiceNetworkType()
        return serviceState != null ? serviceState.getDataNetworkType()
                : TelephonyManager.NETWORK_TYPE_UNKNOWN;
    }