am 8f094ca7: Merge change 3686 into donut
Merge commit '8f094ca7d045132ec93d4e903e784a3c077708c3' * commit '8f094ca7d045132ec93d4e903e784a3c077708c3': Fix cleanupConnection when switching from wifi.
This commit is contained in:
committed by
The Android Open Source Project
commit
164ab6572d
@@ -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