Merge "Rename setDataEnabled to setUserDataEnabled."

am: 43b1b97e3e

Change-Id: Ib11eca12b1331494972c86a18670c348abae3d2c
This commit is contained in:
Malcolm Chen
2018-01-09 23:56:14 +00:00
committed by android-build-merger

View File

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