summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2009-07-07 12:34:41 -0700
committerJaikumar Ganesh <jaikumar@google.com>2009-07-07 12:34:59 -0700
commit024af038a7ad04bb551c305c235d25e51cbeda13 (patch)
tree94c04f524c0a7b132ed0a8a84923099eaa09b663
parent569076c9f6bdadb4d3285a26e069634a839b5b87 (diff)
downloadframeworks_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.
-rw-r--r--telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java2
-rw-r--r--telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java2
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.