Merge change 3686 into donut
* changes: Fix cleanupConnection when switching from wifi.
This commit is contained in:
@@ -304,7 +304,10 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
|
||||
sendMessage(obtainMessage(EVENT_TRY_SETUP_DATA));
|
||||
} else if (!enable) {
|
||||
setEnabled(EXTERNAL_NETWORK_DEFAULT_ID, false);
|
||||
cleanUpConnection(true, Phone.REASON_DATA_DISABLED);
|
||||
Message msg = obtainMessage(EVENT_CLEAN_UP_CONNECTION);
|
||||
msg.arg1 = 1; // tearDown is true
|
||||
msg.obj = Phone.REASON_DATA_DISABLED;
|
||||
sendMessage(msg);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -487,7 +487,10 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
|
||||
(isApnTypeActive(Phone.APN_TYPE_SUPL) && isEnabled(Phone.APN_TYPE_SUPL))) {
|
||||
return false;
|
||||
}
|
||||
cleanUpConnection(true, Phone.REASON_DATA_DISABLED);
|
||||
Message msg = obtainMessage(EVENT_CLEAN_UP_CONNECTION);
|
||||
msg.arg1 = 1; // tearDown is true
|
||||
msg.obj = Phone.REASON_DATA_DISABLED;
|
||||
sendMessage(msg);
|
||||
return true;
|
||||
} else {
|
||||
// isEnabled && enable
|
||||
|
||||
Reference in New Issue
Block a user