From 2fceb7fec09f903c8505f0889a09d431e7b743f1 Mon Sep 17 00:00:00 2001 From: Robert Greenwalt Date: Thu, 12 Jan 2012 17:38:54 -0800 Subject: [PATCH] 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 --- .../android/internal/telephony/DataConnectionTracker.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telephony/java/com/android/internal/telephony/DataConnectionTracker.java b/telephony/java/com/android/internal/telephony/DataConnectionTracker.java index 2c4fdef3f3913..04ba42d939eb1 100644 --- a/telephony/java/com/android/internal/telephony/DataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/DataConnectionTracker.java @@ -1029,8 +1029,10 @@ public abstract class DataConnectionTracker extends Handler { didDisable = true; } } - if (didDisable && enabledCount == 0) { - onCleanUpConnection(true, apnId, Phone.REASON_DATA_DISABLED); + if (didDisable) { + if (enabledCount == 0) { + onCleanUpConnection(true, apnId, Phone.REASON_DATA_DISABLED); + } // send the disconnect msg manually, since the normal route wont send // it (it's not enabled)