diff options
author | Jaikumar Ganesh <jaikumar@google.com> | 2009-07-07 12:34:41 -0700 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-07-07 12:34:59 -0700 |
commit | 024af038a7ad04bb551c305c235d25e51cbeda13 (patch) | |
tree | 94c04f524c0a7b132ed0a8a84923099eaa09b663 /telephony | |
parent | 569076c9f6bdadb4d3285a26e069634a839b5b87 (diff) | |
download | frameworks_base-024af038a7ad04bb551c305c235d25e51cbeda13.zip frameworks_base-024af038a7ad04bb551c305c235d25e51cbeda13.tar.gz frameworks_base-024af038a7ad04bb551c305c235d25e51cbeda13.tar.bz2 |
Cleanup connection when airplane mode is entered.
The message was being sent to the wrong handler.
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java | 2 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java index 0be09b9..e75a333 100644 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java @@ -456,7 +456,7 @@ final class CdmaServiceStateTracker extends ServiceStateTracker { Message msg = dcTracker.obtainMessage(DataConnectionTracker.EVENT_CLEAN_UP_CONNECTION); msg.arg1 = 1; // tearDown is true msg.obj = CDMAPhone.REASON_RADIO_TURNED_OFF; - sendMessage(msg); + dcTracker.sendMessage(msg); // Poll data state up to 15 times, with a 100ms delay // totaling 1.5 sec. Normal data disable action will finish in 100ms. diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java index 066f782..b3b4345 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java @@ -540,7 +540,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { Message msg = dcTracker.obtainMessage(DataConnectionTracker.EVENT_CLEAN_UP_CONNECTION); msg.arg1 = 1; // tearDown is true msg.obj = GSMPhone.REASON_RADIO_TURNED_OFF; - sendMessage(msg); + dcTracker.sendMessage(msg); // poll data state up to 15 times, with a 100ms delay // totaling 1.5 sec. Normal data disable action will finish in 100ms. |