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

Commit f8139ef9 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Rename calls to isGlobalModeEnabled" into rvc-dev am: 4d59bce2

Change-Id: Id1ca1fe5b1949e68006c6c4fe7c0f2c9c4a888fb
parents 300909e2 4d59bce2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -915,7 +915,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
     *    phone that has no encryption.
     */
    private final void setAirplaneModeIfNecessary() {
        if (!getTelephonyManager().isGlobalModeEnabled()) {
        if (!getTelephonyManager().isLteCdmaEvdoGsmWcdmaEnabled()) {
            Log.d(TAG, "Going into airplane mode.");
            Settings.Global.putInt(getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 1);
            final Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ public class ImeiInfoDialogController {

    @VisibleForTesting
    boolean isCdmaLteEnabled() {
        return mTelephonyManager.isGlobalModeEnabled();
        return mTelephonyManager.isLteCdmaEvdoGsmWcdmaEnabled();
    }

    boolean isSimPresent(int slotId) {
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ public class DataServiceSetupPreferenceController extends TelephonyBasePreferenc
                && carrierConfig != null
                && !carrierConfig.getBoolean(
                CarrierConfigManager.KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL)
                && mTelephonyManager.isGlobalModeEnabled() && !TextUtils.isEmpty(mSetupUrl)
                && mTelephonyManager.isLteCdmaEvdoGsmWcdmaEnabled() && !TextUtils.isEmpty(mSetupUrl)
                ? AVAILABLE
                : CONDITIONALLY_UNAVAILABLE;
    }
+2 −2
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public class EnabledNetworkModePreferenceController extends
        mTelephonyManager = mContext.getSystemService(TelephonyManager.class)
                .createForSubscriptionId(mSubId);

        mIsGlobalCdma = mTelephonyManager.isGlobalModeEnabled()
        mIsGlobalCdma = mTelephonyManager.isLteCdmaEvdoGsmWcdmaEnabled()
                && carrierConfig.getBoolean(CarrierConfigManager.KEY_SHOW_CDMA_CHOICES_BOOL);
        mShow4GForLTE = carrierConfig != null
                ? carrierConfig.getBoolean(
@@ -180,7 +180,7 @@ public class EnabledNetworkModePreferenceController extends
                    android.provider.Settings.Global.LTE_SERVICE_FORCED + mSubId,
                    0);
            final int settingsNetworkMode = getPreferredNetworkMode();
            if (mTelephonyManager.isGlobalModeEnabled()) {
            if (mTelephonyManager.isLteCdmaEvdoGsmWcdmaEnabled()) {
                if (lteForced == 0) {
                    preference.setEntries(
                            R.array.enabled_networks_cdma_choices);
+2 −2
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ public class PreferredNetworkModePreferenceController extends TelephonyBasePrefe
        mTelephonyManager = mContext.getSystemService(TelephonyManager.class)
                .createForSubscriptionId(mSubId);

        mIsGlobalCdma = mTelephonyManager.isGlobalModeEnabled()
        mIsGlobalCdma = mTelephonyManager.isLteCdmaEvdoGsmWcdmaEnabled()
                && carrierConfig.getBoolean(CarrierConfigManager.KEY_SHOW_CDMA_CHOICES_BOOL);
    }

@@ -126,7 +126,7 @@ public class PreferredNetworkModePreferenceController extends TelephonyBasePrefe
            case TelephonyManagerConstants.NETWORK_MODE_GSM_UMTS:
                return R.string.preferred_network_mode_gsm_wcdma_summary;
            case TelephonyManagerConstants.NETWORK_MODE_CDMA_EVDO:
                return mTelephonyManager.isGlobalModeEnabled()
                return mTelephonyManager.isLteCdmaEvdoGsmWcdmaEnabled()
                        ? R.string.preferred_network_mode_cdma_summary
                        : R.string.preferred_network_mode_cdma_evdo_summary;
            case TelephonyManagerConstants.NETWORK_MODE_CDMA_NO_EVDO:
Loading