Merge "Moved data settings to phone"

am: bcd6a7db39

Change-Id: I8fde45278c4a5db14f986ea87ab2bfa15b7507ab
This commit is contained in:
Jack Yu
2018-12-20 19:01:06 -08:00
committed by android-build-merger

View File

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