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

Commit a4522275 authored by Chi Zhang's avatar Chi Zhang
Browse files

Fix RAT in DATA_STALL_RECOVERY.

Bug: 179039555
Test: build
Change-Id: I84b46d603bc8ab123a81b130c581b44970d63346
parent 0131aef1
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;
    }