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

Commit e6f8ba77 authored by Ravi Banuri's avatar Ravi Banuri Committed by Gerrit - the friendly Code Review server
Browse files

Add new network types in settings app.

Add "LTE data service enabled" and "LTE data and Voice Calling (IMS/VoLTE)
service enabled" network types with respect to carrier.

Change-Id: Ica49946eaee8ae6f6c00b1faa57ec1da80bad943
CRs-Fixed: 957527
parent 453baf4b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7584,4 +7584,6 @@
    <string name="tethering_no_sim_card_text">Please install SIM card in order to share your data connection with other devices using Mobile HotSpot or USB tethering for Internet access.</string>
    <string name="tether_settings_launch_title">Mobile HotSpot</string>
    <string name="wifi_tether_first_use_message">Set up Mobile HotSpot at the First Use</string>
    <string name="lte_data_and_voice_calling_enabled">LTE data and Voice Calling (IMS/VoLTE) service enabled </string>
    <string name="lte_data_service_enabled">LTE data service enabled </string>
</resources>
+14 −0
Original line number Diff line number Diff line
@@ -286,6 +286,20 @@ public class SimStatus extends SettingsPreferenceFragment {
        if (networktype != null && networktype.equals("LTE") && show4GForLTE) {
            networktype = "4G";
        }

        PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId);
        if (carrierConfig != null && carrierConfig.getBoolean(
            "config_carrier_specific_network_type_display", false)) {
            if (TelephonyManager.NETWORK_TYPE_LTE == actualDataNetworkType ||
                    TelephonyManager.NETWORK_TYPE_LTE == actualVoiceNetworkType) {
                if (mTelephonyManager.isImsRegistered()) {
                    networktype = getResources().
                            getString(R.string.lte_data_and_voice_calling_enabled);
                } else {
                    networktype = getResources().getString(R.string.lte_data_service_enabled);
                }
            }
         }
        setSummaryText(KEY_NETWORK_TYPE, networktype);
    }