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

Commit c03048cd authored by Sarah Chin's avatar Sarah Chin Committed by Automerger Merge Worker
Browse files

Merge "Rename calls to isGlobalModeEnabled" am: b6fd42a0

Change-Id: Ibd354d26acab6e5f8195d4f93b302ec9c362d9be
parents 8bc35321 b6fd42a0
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
@@ -151,7 +151,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(
@@ -183,7 +183,7 @@ public class EnabledNetworkModePreferenceController extends
                    mContext.getContentResolver(),
                    android.provider.Settings.Global.PREFERRED_NETWORK_MODE + mSubId,
                    Phone.PREFERRED_NT_MODE);
            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
@@ -102,7 +102,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);
    }

@@ -129,7 +129,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