From 024af038a7ad04bb551c305c235d25e51cbeda13 Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Tue, 7 Jul 2009 12:34:41 -0700 Subject: Cleanup connection when airplane mode is entered. The message was being sent to the wrong handler. --- .../com/android/internal/telephony/cdma/CdmaServiceStateTracker.java | 2 +- .../java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'telephony') 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. -- cgit v1.1