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

Commit 3502b01b authored by Zoey Chen's avatar Zoey Chen
Browse files

[Provider Model] The carrier name of the "Turn off mobile data" is wrong.

Should get the display name from SubInfo instead of carrier name

Bug: 198397635
Test: manual and Q verified
Change-Id: I8f68d0bacb02e79891c4996e9c8b2a706104d801
parent 7fb05672
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -486,8 +486,7 @@ public class InternetDialog extends SystemUIDialog implements
    }

    private void showTurnOffMobileDialog() {
        CharSequence carrierName =
                mSubscriptionManager.getDefaultDataSubscriptionInfo().getCarrierName();
        CharSequence carrierName = getMobileNetworkTitle();
        boolean isInService = mInternetDialogController.isVoiceStateInService();
        if (TextUtils.isEmpty(carrierName) || !isInService) {
            carrierName = mContext.getString(R.string.mobile_data_disable_message_default_carrier);