Merge change 6383 into donut

* changes:
  Cleanup connection when airplane mode is entered.
This commit is contained in:
Android (Google) Code Review
2009-07-07 15:22:15 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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.