Moved data settings to phone
Since there are multiple DcTrackers, but we only have
one set of data settings. So we need to move them from
DcTracker to Phone.
Test: Telephony sanity tests + unit tests
Bug: 73659459
Merged-In: If11a6eff057a18b4aa97addbb348537bd3194e1a
Change-Id: If11a6eff057a18b4aa97addbb348537bd3194e1a
(cherry picked from commit 50972ed89e
)
This commit is contained in:
@@ -1199,12 +1199,10 @@ public class RadioInfo extends Activity {
|
||||
int state = mTelephonyManager.getDataState();
|
||||
switch (state) {
|
||||
case TelephonyManager.DATA_CONNECTED:
|
||||
//FIXME: Replace with a TelephonyManager call
|
||||
phone.setUserDataEnabled(false);
|
||||
mTelephonyManager.setDataEnabled(false);
|
||||
break;
|
||||
case TelephonyManager.DATA_DISCONNECTED:
|
||||
//FIXME: Replace with a TelephonyManager call
|
||||
phone.setUserDataEnabled(true);
|
||||
mTelephonyManager.setDataEnabled(true);
|
||||
break;
|
||||
default:
|
||||
// do nothing
|
||||
|
Reference in New Issue
Block a user