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
This commit is contained in:
Robert Greenwalt
2009-09-28 21:04:22 -07:00
parent 02541fe6a2
commit 59ceeae4ec

View File

@@ -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];