Merge "Moved data settings to phone"

This commit is contained in:
TreeHugger Robot
2018-12-16 04:58:37 +00:00
committed by Android (Google) Code Review

View File

@@ -1194,12 +1194,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