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

Commit 6acaca1b authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

Settings : Add config_disablePreferredNetworkSwitch

Using this on MSIM devices leads to weird states that
break telephony's internal state machine. All MSIM
devices should probably set this to "true"

Change-Id: Id55749d3c57c28480b697a96c36599198e4c4193
parent 107d9935
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -90,4 +90,7 @@
    <!-- Some vendors don't want to allow non slot 0 to be set to default for calls/sms -->
    <bool name="config_disableAltAlwaysSmsCallSimPref">false</bool>

    <!-- Using this on MSIM devices leads to weird states that break telephony's
    internal state machine. All MSIM devices should probably set this to "true"-->
    <bool name="config_disablePreferredNetworkSwitch" translatable="false">false</bool>
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -294,6 +294,10 @@ public class RadioInfo extends Activity {
        preferredNetworkType.setAdapter(adapter);
        preferredNetworkType.setOnItemSelectedListener(mPreferredNetworkHandler);

        boolean disablePreferredNetworkSwitch = getResources().getBoolean(
                R.bool.config_disablePreferredNetworkSwitch);
        preferredNetworkType.setEnabled(!disablePreferredNetworkSwitch);

        radioPowerButton = (Button) findViewById(R.id.radio_power);
        radioPowerButton.setOnClickListener(mPowerButtonHandler);