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

Commit 59ceeae4 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Fix the reporting of ActiveApnTypes on CDMA

Previous fix limiting what was reported active was too strict, leading to
DISCONNECTED messages not being accepted (apn list was empty).

bug: 2151520
parent 02541fe6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
    @Override
    protected boolean isApnTypeActive(String type) {
        return (isApnTypeAvailable(type) &&
                (state == State.CONNECTED || state == State.INITING));
                (state != State.IDLE));
    }

    @Override
@@ -260,7 +260,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
    }

    protected String[] getActiveApnTypes() {
        if (state == State.CONNECTED || state == State.INITING) {
        if (state != State.IDLE) {
            return mSupportedApnTypes.clone();
        }
        return new String[0];