Skip to content

Commit 2fceb7f

Browse files
author
Robert Greenwalt
committed
Fix teardown of secondary connections on CDMA
Restores functionallity from Gingerbread. We should tear down when the enabledcount goes to zero, but we should always notify and attempt to switch back to default when indicated. bug:5830081 Change-Id: Ib8469bb5369da21e8cc05fb755b2d7e24c8e02a6
1 parent 4b1261f commit 2fceb7f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

telephony/java/com/android/internal/telephony/DataConnectionTracker.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,8 +1029,10 @@ protected void onEnableApn(int apnId, int enabled) {
10291029
didDisable = true;
10301030
}
10311031
}
1032-
if (didDisable && enabledCount == 0) {
1033-
onCleanUpConnection(true, apnId, Phone.REASON_DATA_DISABLED);
1032+
if (didDisable) {
1033+
if (enabledCount == 0) {
1034+
onCleanUpConnection(true, apnId, Phone.REASON_DATA_DISABLED);
1035+
}
10341036

10351037
// send the disconnect msg manually, since the normal route wont send
10361038
// it (it's not enabled)

0 commit comments

Comments
 (0)