[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
This commit is contained in:
Zoey Chen
2021-09-02 11:32:55 +08:00
parent 7fb056725e
commit 3502b01b61

View File

@@ -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);