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

Commit 6cf89b9b authored by Rakesh Pallerla's avatar Rakesh Pallerla Committed by Gerrit - the friendly Code Review server
Browse files

Modify code to get data_state from phoneStateListener.

Modify code to get data state from phoneStateListener
instead of TelephonyManager.

Change-Id: I965acf29c24d724676beaacd318e3ccfc1542ed8
CRs-Fixed: 755443
parent 1447f6f3
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -280,6 +280,7 @@ public class MSimSubscriptionStatus extends PreferenceActivity {
            }
            @Override
            public void onDataConnectionStateChanged(int state) {
                mDataState = state;
                updateDataState();
                updateNetworkType();
            }
@@ -321,11 +322,9 @@ public class MSimSubscriptionStatus extends PreferenceActivity {
    }

    private void updateDataState() {
        // FIXME this needs to be sub based ?
        int state = mTelephonyManager.getDataState();
        String display = mRes.getString(R.string.radioInfo_unknown);

        switch (state) {
        switch (mDataState) {
            case TelephonyManager.DATA_CONNECTED:
                display = mRes.getString(R.string.radioInfo_data_connected);
                break;