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

Commit c22d9eae authored by Chi Zhang's avatar Chi Zhang Committed by Automerger Merge Worker
Browse files

Merge "Fix RAT in DATA_STALL_RECOVERY." am: 18764536

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1582527

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaff61a1cdfa8ee2bf2121ee296e64f1f85f77f4a
parents b9685122 18764536
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;
    }