OSDN Git Service

Report data status from ApnContext even if data is detached
authorKazuhiro Ondo <kazuhiro.ondo@motorola.com>
Sat, 4 Jun 2011 00:13:35 +0000 (19:13 -0500)
committerWink Saville <wink@google.com>
Wed, 8 Jun 2011 20:05:32 +0000 (13:05 -0700)
commit2e994586ed0aa09f93951dbc4de35d56a93abe95
tree9fb40ae279b28a9b308f7e2f56c0e6d10b4f9dc8
parenta558fdf156601a477964139fee57da29de7f31b3
Report data status from ApnContext even if data is detached

While in HO, data connection type may temporary become "unknown".
This triggers TelephonyRegistry picks up the wrong data connection
state, ending up notifying bogus state to ConnectivityService.

The patch is just to pick up the status from ApnContext which
should be maintaining the right state. Also cleaned up unnecessary
lines which was added earlier phase.

Change-Id: I07e74ce55f09ad31f2d8d09e2a144dc0b600eb0c
telephony/java/com/android/internal/telephony/cdma/CDMALTEPhone.java
telephony/java/com/android/internal/telephony/gsm/GSMPhone.java