Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a91d29f5 authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Moved data settings to phone" am: bcd6a7db

am: 67475a5c

Change-Id: I5ae8d51ffbdfa41c0cfacd49a2d10524f6abdd25
parents 8c758f5c 67475a5c
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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