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

Commit 7746efe4 authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Can change cellular service manually.

In the original design, user can change cellular service manually.

According to CT's needs, disable menu 'cellular data'.

CRs-Fixed: 778822

Change-Id: Id412c321f6629565b413dfa3345b6a56d3fe8814
parent 45d57157
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -92,4 +92,7 @@

    <!-- Whether notify user in cell to wlan feature -->
    <bool name="cellular_to_wlan_hint">false</bool>
    <!-- Whether to disable cellular data -->
    <bool name="disbale_cellular_data">false</bool>

</resources>
+2 −1
Original line number Diff line number Diff line
@@ -368,7 +368,8 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
        final DropDownPreference simPref = (DropDownPreference) findPreference(KEY_CELLULAR_DATA);
        boolean callStateIdle = isCallStateIdle();
        // Enable data preference in msim mode and call state idle
        simPref.setEnabled((mNumSims > 1) && callStateIdle);
        boolean disableCellulardata = getResources().getBoolean(R.bool.disbale_cellular_data);
        simPref.setEnabled((mNumSims > 1) && callStateIdle && (!disableCellulardata));
        // Display toast only once when the user enters the activity even though the call moves
        // through multiple call states (eg - ringing to offhook for incoming calls)
        if (callStateIdle == false && inActivity && dataDisableToastDisplayed == false) {