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

Commit bbd1c7e7 authored by Susheel Nyamala's avatar Susheel Nyamala Committed by Susheel nyamala
Browse files

Fix to return data connection state

When the data is OOS and phone type is cdma lte return the state
as DISCONNECTED

Change-Id: Ife9adee73cfe4e620697c4262ad0ed8c9cf1dd90
Bug-Id: 63315987
parent 30fe8470
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -502,7 +502,7 @@ public class GsmCdmaPhone extends Phone {

            ret = PhoneConstants.DataState.DISCONNECTED;
        } else if (mSST.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE
                && (isPhoneTypeCdma() ||
                && (isPhoneTypeCdma() || isPhoneTypeCdmaLte() ||
                (isPhoneTypeGsm() && !apnType.equals(PhoneConstants.APN_TYPE_EMERGENCY)))) {
            // If we're out of service, open TCP sockets may still work
            // but no data will flow