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:
Jack Yu
2018-12-13 11:51:20 -08:00
parent fd0426d438
commit e5accf70fb

View File

@@ -1199,12 +1199,10 @@ public class RadioInfo extends Activity {
int state = mTelephonyManager.getDataState(); int state = mTelephonyManager.getDataState();
switch (state) { switch (state) {
case TelephonyManager.DATA_CONNECTED: case TelephonyManager.DATA_CONNECTED:
//FIXME: Replace with a TelephonyManager call mTelephonyManager.setDataEnabled(false);
phone.setUserDataEnabled(false);
break; break;
case TelephonyManager.DATA_DISCONNECTED: case TelephonyManager.DATA_DISCONNECTED:
//FIXME: Replace with a TelephonyManager call mTelephonyManager.setDataEnabled(true);
phone.setUserDataEnabled(true);
break; break;
default: default:
// do nothing // do nothing